Skip to content

Commit

Permalink
feat: add is_ciip_emission column to gas table
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Apr 21, 2021
1 parent d6d3df1 commit 7b7fd54
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/gas_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy ggircs-portal:tables/gas_001 to pg
-- requires: tables/gas

begin;

alter table ggircs_portal.gas add column is_ciip_emission boolean default true;

comment on column ggircs_portal.fuel.comments is 'boolean column indicates whether this row should be included when totalling emissions in the context of CIIP (CleanBC Industrial Incentive Program)';

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

begin;

alter table ggircs_portal.gas drop column is_ciip_emission;

commit;
1 change: 1 addition & 0 deletions schema/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,4 @@ computed_columns/application_revision_naics_code [tables/form_result tables/appl
queries/default_displayed_reporting_year 2021-04-16T21:15:17Z Matthieu Foucault <matthieu@button.is> # add a function that returns the reporting year displayed by default, based on the currently opened reporting year
queries/facility_application_by_reporting_year [queries/facility_application_by_reporting_year@v2.0.0 queries/default_displayed_reporting_year] 2021-04-16T21:17:27Z Matthieu Foucault <matthieu@button.is> # allow facility_application_by_reporting_year to not have a reporting year
@v2.1.0 2021-04-21T21:07:05Z Dylan Leard <dylan@button.is> # release v2.1.0
tables/gas_001 [tables/gas] 2021-04-20T17:48:20Z Dylan Leard <dylan@button.is> # Migration: add is_ciip_emission column to gas table
7 changes: 7 additions & 0 deletions schema/verify/tables/gas_001.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify ggircs-portal:tables/gas_001 on pg

begin;

select pg_catalog.has_table_privilege('ggircs_portal.gas', 'select');

rollback;

0 comments on commit 7b7fd54

Please sign in to comment.