[server] Add ip column
This commit is contained in:
parent
ef0873082a
commit
badd9263f4
2 changed files with 6 additions and 0 deletions
1
server/migrations/84_add_cast_column.down.sql
Normal file
1
server/migrations/84_add_cast_column.down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
ALTER TABLE casting DROP COLUMN IF EXISTS ip;
|
5
server/migrations/84_add_cast_column.up.sql
Normal file
5
server/migrations/84_add_cast_column.up.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
--- Delete all rows from casting table and add a non-nullable column called ip
|
||||
BEGIN;
|
||||
DELETE FROM casting;
|
||||
ALTER TABLE casting ADD COLUMN ip text NOT NULL;
|
||||
COMMIT;
|
Loading…
Reference in a new issue