Skip to content

Commit

Permalink
feat: add override column to application_revision table
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jul 29, 2020
1 parent 7c79da0 commit 2f13ed0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schema/deploy/tables/application_revision_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy ggircs-portal:tables/application_revision_001 to pg
-- requires: tables/application_revision

begin;

alter table ggircs_portal.application_revision add column override_justification varchar(10000) default '';

comment on column ggircs_portal.application_revision.override_justification is 'Reporter defined justification for overriding error validation when submitting this revision';

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

begin;

alter table ggircs_portal.application_revision drop column override_justification;

commit;
1 change: 1 addition & 0 deletions schema/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ trigger_functions/request_for_organisation_access [trigger_functions/request_for
@v1.1.0 2020-07-22T16:32:21Z Matthieu Foucault <matthieu@button.is> # release v1.1.0
@v1.2.0 2020-07-27T18:36:49Z Matthieu Foucault <matthieu@button.is> # release v1.2.0
@v1.3.0 2020-07-29T20:54:44Z Matthieu Foucault <matthieu@button.is> # release v1.3.0
tables/application_revision_001 [tables/application_revision] 2020-07-22T23:13:57Z Dylan Leard <dylan@button.is> # Migration: add override column to application_revision
9 changes: 9 additions & 0 deletions schema/verify/tables/application_revision_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Verify ggircs-portal:tables/application_revision_001 on pg

begin;

select column_name
from information_schema.columns
where table_schema='ggircs_portal' and table_name='application_revision' and column_name='override_justification';

rollback;

0 comments on commit 2f13ed0

Please sign in to comment.