Skip to content

Commit

Permalink
feat: add enum type review_step_name
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Mar 12, 2021
1 parent 9990f27 commit daa9d89
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions schema/deploy/types/review_step_name.sql
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;
7 changes: 7 additions & 0 deletions schema/revert/types/review_step_name.sql
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;
1 change: 1 addition & 0 deletions schema/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,4 @@ computed_columns/product_current_eligibility_threshold [tables/benchmark] 2021-0
search_functions/search_products [search_functions/search_products@v1.16.0] 2021-03-08T19:38:56Z Dylan Leard <dylan@button.is> # Migration: remove deprecated search_products function
trigger_functions/update_timestamps [trigger_functions/update_timestamps@v1.16.0] 2021-03-11T18:53:14Z Dylan Leard <dylan@button.is> # Migration: allow subset of created/updated/deleted columns & ability to define what column triggers the deleted at/by columns
database_functions/upsert_timestamp_columns [trigger_functions/update_timestamps] 2021-03-11T20:56:27Z Dylan Leard <dylan@button.is> # Internal function adds the columns, trigger and indices to do with timestamps
types/review_step_name [schema_ggircs_portal] 2021-03-09T22:42:29Z Dylan Leard <dylan@button.is> # Enum type review_step_name is the set of names a review_step can select from
13 changes: 13 additions & 0 deletions schema/verify/types/review_step_name.sql
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;

0 comments on commit daa9d89

Please sign in to comment.