-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
LOCK builds, releases; | ||
|
||
DELETE FROM builds WHERE build_status = 'in_progress'; | ||
|
||
ALTER TABLE builds ALTER build_status | ||
TYPE BOOL | ||
USING build_status = 'success'; | ||
|
||
DROP TYPE BUILD_STATUS; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CREATE TYPE build_status AS ENUM ( | ||
'in_progress', | ||
'success', | ||
'failure' | ||
); | ||
|
||
ALTER TABLE builds ALTER build_status | ||
TYPE build_status | ||
USING CASE | ||
WHEN build_status | ||
THEN 'success'::build_status | ||
ELSE 'failure'::build_status | ||
END; |