migrate db to support confirmation emails
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
BEGIN;
|
||||
-- Backfill `status` for historical entries
|
||||
UPDATE subscriptions
|
||||
SET status = 'confirmed'
|
||||
WHERE status IS NULL;
|
||||
-- Make `status` mandatory
|
||||
ALTER TABLE subscriptions ALTER COLUMN status SET NOT NULL;
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user