-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add enum type review_step_name
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Deploy ggircs-portal:types/review_step_name to pg | ||
-- requires: schema_ggircs_portal | ||
|
||
begin; | ||
|
||
create type ggircs_portal.review_step_name as enum ('administrative', 'technical', 'legacy'); | ||
|
||
commit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Revert ggircs-portal:types/review_step_name from pg | ||
|
||
begin; | ||
|
||
drop type ggircs_portal.review_step_name; | ||
|
||
commit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Verify ggircs-portal:types/review_step_name on pg | ||
|
||
begin; | ||
|
||
do $$ | ||
begin | ||
assert ( | ||
select true from pg_catalog.pg_type where typname = 'review_step_name' | ||
), 'type "review_step_name" is not defined'; | ||
end; | ||
$$; | ||
|
||
rollback; |