Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions drizzle/0007_bent_nocturne.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Preserve the intent represented by pre-reconciliation rows before removing
-- the legacy transitional status column.
UPDATE `projects`
SET `desired_status` = CASE `status`
WHEN 'created' THEN 'created'
WHEN 'starting' THEN 'running'
WHEN 'running' THEN 'running'
WHEN 'stopping' THEN 'stopped'
WHEN 'stopped' THEN 'stopped'
WHEN 'error' THEN 'running'
WHEN 'deleting' THEN 'deleting'
ELSE `desired_status`
END;--> statement-breakpoint
ALTER TABLE `projects` DROP COLUMN `status`;
Loading
Loading