-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add electricity_amount column to emission table for EIO emissions
- Loading branch information
Showing
5 changed files
with
29 additions
and
5 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,10 @@ | ||
-- Deploy ggircs:swrs/public/table/emission_004 to pg | ||
-- requires: swrs/public/table/emission_003 | ||
|
||
begin; | ||
|
||
alter table swrs.emission add electricity_amount numeric; | ||
|
||
comment on column swrs.emission.electricity_amount is 'The amount of electricity imported/exported for the row data'; | ||
|
||
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,7 @@ | ||
-- Revert ggircs:swrs/public/table/emission_004 from pg | ||
|
||
begin; | ||
|
||
alter table swrs.emission drop column electricity_amount; | ||
|
||
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 |
---|---|---|
|
@@ -259,6 +259,7 @@ swrs/parameters/table/gwp 2023-06-05T22:35:23Z Brianna Cerkiewicz <briannacerkie | |
swrs/public/table/emission_003 2023-06-06T15:37:39Z Brianna Cerkiewicz <briannacerkiewicz@pop-os> # Add ar5_calculated_quantity column to the emissions table | ||
swrs/transform/function/load_emission [swrs/transform/function/[email protected]] 2023-06-06T16:04:44Z Brianna Cerkiewicz <briannacerkiewicz@pop-os> # Calculate the ar5_calculated_quantity column in load_emission | ||
@1.17.0 2023-06-19T18:15:06Z Dylan Leard <[email protected]> # release v1.17.0 | ||
swrs/public/table/emission_004 [swrs/public/table/emission_003] 2023-10-16T21:28:21Z Dylan Leard <[email protected]> # Migration: add electricity_amount to emission table for EIO emissions | ||
swrs/transform/materialized_view/eio_emission [swrs/transform/schema] 2023-10-12T21:56:46Z Dylan Leard <[email protected]> # Add a materialized view for EIO Emissions. Necessary due to schema change for EIO Emissions as of reporting year 2022. | ||
swrs/transform/function/load_emission [swrs/transform/function/[email protected]] 2023-10-12T21:42:08Z Dylan Leard <[email protected]> # Migration: include emissions from EIOs after ECCC schema change | ||
|
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 @@ | ||
-- Verify ggircs:swrs/public/table/emission_004 on pg | ||
|
||
begin; | ||
|
||
select pg_catalog.has_table_privilege('swrs.emission', 'select'); | ||
|
||
rollback; |