[server] Add ip column
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user