Initial commit - Route Commerce platform
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
-- Migration 077: Add status column to stops
|
||||
-- 'draft' = imported, awaiting review | 'active' = published
|
||||
|
||||
ALTER TABLE stops ADD COLUMN IF NOT EXISTS status TEXT DEFAULT 'active' NOT NULL;
|
||||
|
||||
-- Set existing stops to 'active'
|
||||
UPDATE stops SET status = 'active' WHERE status IS NULL;
|
||||
|
||||
ALTER TABLE stops ALTER COLUMN status SET NOT NULL;
|
||||
Reference in New Issue
Block a user