Skip to content

Commit

Permalink
feat: rename Flared Natural Gas CH4 to "Flared Natural Gas"
Browse files Browse the repository at this point in the history
Archived other Flared Natural Gas fuels
  • Loading branch information
matthieu-foucault committed Feb 12, 2021
1 parent 2abf74f commit 312a4b5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions schema/data/prod/fuel.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,18 @@ values
(82,'Vegetable Oil','kL', 'active', 141),
(83,'Waste Oil','kL', 'active', 142),
(84,'Wood Waste','t', 'active', 143),
(85,'Flared Natural Gas CO2','m3', 'active', 145),
(86,'Flared Natural Gas CH4','m3', 'active', 146),
(87,'Flared Natural Gas N20','m3', 'active', 147),
(85,'Flared Natural Gas CO2','m3', 'archived', 145),
-- Flared Natural Gas was previously named Flared Natural Gas CH4
-- It was renamed and the swrs_fuel_mapping_id was updated as applicants for the CIIP 2019 applications
-- were instructed to report an amount of natural gas under this fuel
(86,'Flared Natural Gas','m3', 'active', 95),
(87,'Flared Natural Gas N20','m3', 'archived', 147),
(88,'Vented Natural Gas','m3', 'active', 148)
on conflict(id) do update set units=excluded.units, state=excluded.state
on conflict(id) do update set
units=excluded.units,
state=excluded.state,
name=excluded.name,
swrs_fuel_mapping_id=excluded.swrs_fuel_mapping_id
returning 1
) select 'Inserted ' || count(*) || ' rows into ggircs_portal.fuel' from rows;

Expand Down

0 comments on commit 312a4b5

Please sign in to comment.