From 90715467a245d08441b8454d0f4dfa5295038306 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 3 Mar 2019 20:44:29 -0600 Subject: [PATCH] Set default value for 'subscribed' date --- config/migrate-scripts/migrate-db-8e884fe1.sh | 1 + 1 file changed, 1 insertion(+) 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'"