Add role to psql scripts
parent
8d5f941829
commit
c5001f3620
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channels ADD COLUMN subscribed bool;"
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN subscribed bool;"
|
||||||
psql invidious -c "UPDATE channels SET subscribed = false;"
|
psql invidious kemal -c "UPDATE channels SET subscribed = false;"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channel_videos DROP COLUMN live_now CASCADE"
|
psql invidious kemal -c "ALTER TABLE channel_videos DROP COLUMN live_now CASCADE"
|
||||||
psql invidious -c "ALTER TABLE channel_videos DROP COLUMN premiere_timestamp CASCADE"
|
psql invidious kemal -c "ALTER TABLE channel_videos DROP COLUMN premiere_timestamp CASCADE"
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channel_videos ADD COLUMN live_now bool"
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN live_now bool"
|
||||||
psql invidious -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz"
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channels ADD COLUMN deleted bool;"
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN deleted bool;"
|
||||||
psql invidious -c "UPDATE channels SET deleted = false;"
|
psql invidious kemal -c "UPDATE channels SET deleted = false;"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious < config/sql/session_ids.sql
|
psql invidious < config/sql/session_ids.sql
|
||||||
psql invidious -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
|
psql invidious kemal -c "INSERT INTO session_ids (SELECT unnest(id), email, CURRENT_TIMESTAMP FROM users) ON CONFLICT (id) DO NOTHING"
|
||||||
psql invidious -c "ALTER TABLE users DROP COLUMN id"
|
psql invidious kemal -c "ALTER TABLE users DROP COLUMN id"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channel_videos ADD COLUMN live_now bool;"
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN live_now bool;"
|
||||||
psql invidious -c "UPDATE channel_videos SET live_now = false;"
|
psql invidious kemal -c "UPDATE channel_videos SET live_now = false;"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz;"
|
psql invidious kemal -c "ALTER TABLE channel_videos ADD COLUMN premiere_timestamp timestamptz;"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
psql invidious -c "ALTER TABLE channels DROP COLUMN subscribed"
|
psql invidious kemal -c "ALTER TABLE channels DROP COLUMN subscribed"
|
||||||
psql invidious -c "ALTER TABLE channels ADD COLUMN subscribed timestamptz"
|
psql invidious kemal -c "ALTER TABLE channels ADD COLUMN subscribed timestamptz"
|
||||||
psql invidious -c "UPDATE channels SET subscribed = '2019-01-01 00:00:00+00'"
|
psql invidious kemal -c "UPDATE channels SET subscribed = '2019-01-01 00:00:00+00'"
|
||||||
|
Loading…
Reference in New Issue