invidious-experimenting/config/migrate-scripts/migrate-db-8e884fe1.sh
2019-03-03 20:44:29 -06:00

6 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'"