Skip to content

Commit

Permalink
feat: adding a comments column to the fuel table
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Apr 12, 2021
1 parent d412f8e commit 0c6f474
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schema/deploy/tables/fuel_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy ggircs-portal:tables/fuel_001 to pg
-- requires: tables/fuel

BEGIN;

alter table ggircs_portal.fuel add column comments text;

comment on column ggircs_portal.fuel.comments is 'Metadata about this fuel row';

COMMIT;
7 changes: 7 additions & 0 deletions schema/revert/tables/fuel_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert ggircs-portal:tables/fuel_001 from pg

BEGIN;

alter table ggircs_portal.fuel drop column comments;

COMMIT;
1 change: 1 addition & 0 deletions schema/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,4 @@ computed_columns/form_result_requested_change_comments [computed_columns/form_re
computed_columns/form_result_has_unresolved_comments [computed_columns/form_result_has_unresolved_comments@v1.16.0] 2021-03-16T18:42:31Z Dylan Leard <dylan@button.is> # Migration: drop deprecated function
tables/review_comment_001 [tables/review_comment] 2021-03-16T22:47:13Z Dylan Leard <dylan@button.is> # Migration: Changes Data! drop form_id column, add application_review_step_id column, update existing comments to point to an application_review_step
types/review_comment_type_001 [types/review_comment_type] 2021-03-16T20:16:04Z Dylan Leard <dylan@button.is> # Migration: Changes Data! all 'approval' or 'requested changes' comments are changed to general in this migration. enum type is truncated to only includ general/internal
tables/fuel_001 [tables/fuel] 2021-04-08T21:59:59Z Pierre Bastianelli <pierre.bastianelli@gov.bc.ca> # adding a comments column to store additional metadata
7 changes: 7 additions & 0 deletions schema/verify/tables/fuel_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify ggircs-portal:tables/fuel_001 on pg

BEGIN;

select comments from ggircs_portal.fuel;

ROLLBACK;

0 comments on commit 0c6f474

Please sign in to comment.