invidious-copy-2022-08-14/config/migrate-scripts/migrate-db-8e884fe.sh
2019-03-22 14:52:57 -05:00

5 lines
228 B
Bash
Executable file

#!/bin/sh
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'"