Skip to content

Commit 8d96145

Browse files
committed
db: add migration to set subscriptions.status not null
1 parent d6c44d0 commit 8d96145

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Add migration script here
2+
BEGIN;
3+
UPDATE subscriptions SET status = 'confirmed' WHERE status IS NULL;
4+
ALTER TABLE subscriptions ALTER COLUMN status SET NOT NULL;
5+
COMMIT;

0 commit comments

Comments
 (0)