-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3702 from DOI-ONRR/dev
dev --> master PR December 18, 2024 v7.11.0
- Loading branch information
Showing
18 changed files
with
13,081 additions
and
6,919 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
12 changes: 12 additions & 0 deletions
12
database/changelog/changelog-anonymous/fix-mn-st-louis-location.yaml
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,12 @@ | ||
databaseChangeLog: | ||
- changeSet: | ||
id: fix-mn-st-louis-location | ||
author: Jeff Schwartz | ||
changes: | ||
- sql: | ||
dbms: 'postgresql' | ||
sql: | | ||
UPDATE LOCATION | ||
SET location_name = 'Minnesota, St. Louis', | ||
county = 'St. Louis' | ||
WHERE fips_code = '27137'; |
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
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
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
24 changes: 24 additions & 0 deletions
24
database/changelog/src/functions/insert_location_revenue.sql
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,24 @@ | ||
CREATE OR REPLACE FUNCTION insert_location_revenue() | ||
RETURNS TRIGGER | ||
AS $$ | ||
BEGIN | ||
INSERT INTO location( | ||
land_class, | ||
land_category, | ||
state, | ||
county, | ||
fips_code, | ||
offshore_region | ||
) | ||
VALUES( | ||
COALESCE(NEW.land_class_code, ''), | ||
COALESCE(NEW.land_category_code_desc, ''), | ||
COALESCE(NEW.state, ''), | ||
COALESCE(NEW.county_code_desc, ''), | ||
COALESCE(NEW.fips_code, ''), | ||
COALESCE(NEW.agency_state_region_code_desc, '') | ||
) | ||
ON CONFLICT DO NOTHING; | ||
|
||
RETURN NULL; | ||
END $$ LANGUAGE PLPGSQL; |
7 changes: 7 additions & 0 deletions
7
database/changelog/src/triggers/monthly_revenue_etl_insert_location_ari.sql
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 @@ | ||
DROP TRIGGER IF EXISTS monthly_revenue_etl_insert_location_ari ON monthly_revenue_elt; | ||
|
||
CREATE TRIGGER monthly_revenue_etl_insert_location_ari | ||
AFTER INSERT | ||
ON monthly_revenue_elt | ||
FOR EACH ROW | ||
EXECUTE FUNCTION insert_location_revenue(); |
747 changes: 360 additions & 387 deletions
747
database/static/csv/disbursements/monthly_disbursements.csv
Large diffs are not rendered by default.
Oops, something went wrong.
824 changes: 416 additions & 408 deletions
824
database/static/csv/production/monthly_production.csv
Large diffs are not rendered by default.
Oops, something went wrong.
1,880 changes: 1,880 additions & 0 deletions
1,880
database/static/csv/revenue/November 2024 Revenue for Portal_csv.csv
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.