Add migrate script and update README
parent
3646395f1d
commit
a384f6e5fd
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
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 -c "ALTER TABLE users DROP COLUMN id"
|
Loading…
Reference in New Issue