Refactor notifications
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE notifications ADD COLUMN title VARCHAR NOT NULL;
|
||||
ALTER TABLE notifications ADD COLUMN content TEXT;
|
||||
ALTER TABLE notifications ADD COLUMN link VARCHAR;
|
||||
ALTER TABLE notifications ADD COLUMN data VARCHAR;
|
||||
|
||||
ALTER TABLE notifications DROP COLUMN kind;
|
||||
ALTER TABLE notifications DROP COLUMN object_id;
|
||||
@@ -0,0 +1,8 @@
|
||||
-- Your SQL goes here
|
||||
ALTER TABLE notifications DROP COLUMN title;
|
||||
ALTER TABLE notifications DROP COLUMN content;
|
||||
ALTER TABLE notifications DROP COLUMN link;
|
||||
ALTER TABLE notifications DROP COLUMN data;
|
||||
|
||||
ALTER TABLE notifications ADD COLUMN kind VARCHAR NOT NULL DEFAULT 'unknown';
|
||||
ALTER TABLE notifications ADD COLUMN object_id INTEGER NOT NULL DEFAULT 0;
|
||||
Reference in New Issue
Block a user