Skip to content

Invidious is an alternative front-end to YouTube

Set default value for 'subscribed' date

Omar Roth90715467a245
diff --git a/config/migrate-scripts/migrate-db-8e884fe1.sh b/config/migrate-scripts/migrate-db-8e884fe1.sh
index ca137a5f..095c7632 100755
--- a/config/migrate-scripts/migrate-db-8e884fe1.sh
+++ b/config/migrate-scripts/migrate-db-8e884fe1.sh
@@ -2,3 +2,4 @@
psql invidious -c "ALTER TABLE channels DROP COLUMN subscribed"
psql invidious -c "ALTER TABLE channels ADD COLUMN subscribed timestamptz"
+psql invidious -c "UPDATE channels SET subscribed = '2019-01-01 00:00:00+00'"