this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add one-time backfill script for source metadata

+24
+24
sql/backfill_sources.sql
··· 1 + -- One-time backfill: set source metadata on all existing rows. 2 + -- All existing data originates from IRC, #soggies channel on jameswhite.org. 3 + -- Run this manually after deploying the source fields migration. 4 + -- 5 + -- Usage (SQLite): sqlite3 tumble.db < sql/backfill_sources.sql 6 + -- Usage (MySQL): mysql -u user -p tumble < sql/backfill_sources.sql 7 + 8 + UPDATE ircLink 9 + SET source_type = 'irc', 10 + source_network = 'jameswhite.org', 11 + source_channel = '#soggies' 12 + WHERE source_type IS NULL; 13 + 14 + UPDATE quote 15 + SET source_type = 'irc', 16 + source_network = 'jameswhite.org', 17 + source_channel = '#soggies' 18 + WHERE source_type IS NULL; 19 + 20 + UPDATE image 21 + SET source_type = 'irc', 22 + source_network = 'jameswhite.org', 23 + source_channel = '#soggies' 24 + WHERE source_type IS NULL;