Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 1e26950

Browse files
PiszmogBolajiOlajide
authored andcommitted
Normalize draft to "draft" (#43390)
1 parent 31e5b45 commit 1e26950

File tree

1 file changed

+4
-0
lines changed
  • migrations/frontend/1663871069_changeset_specs_null_published

1 file changed

+4
-0
lines changed

migrations/frontend/1663871069_changeset_specs_null_published/up.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ UPDATE changeset_specs
22
SET published = NULL
33
WHERE published = 'null';
44

5+
UPDATE changeset_specs
6+
SET published = '"draft"'
7+
WHERE published = 'draft';
8+
59
ALTER TABLE changeset_specs
610
DROP CONSTRAINT IF EXISTS changeset_specs_published_valid_values,
711
ADD CONSTRAINT changeset_specs_published_valid_values CHECK (published = 'true' OR published = 'false' OR

0 commit comments

Comments
 (0)