From bf7eb322047095532ecb052aa2b024f40c313d04 Mon Sep 17 00:00:00 2001 From: akrherz Date: Wed, 24 Jan 2024 12:22:02 -0600 Subject: [PATCH 1/2] add era5land,nldas soil vars to coop refs akrherz/iem#595 refs akrherz/iem#321 --- init/coop.sql | 8 ++++++-- upgrade/coop/19.sql | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 upgrade/coop/19.sql diff --git a/init/coop.sql b/init/coop.sql index 419fc4e..01acff0 100644 --- a/init/coop.sql +++ b/init/coop.sql @@ -5,7 +5,7 @@ CREATE EXTENSION postgis; CREATE TABLE iem_schema_manager_version( version int, updated timestamptz); -INSERT into iem_schema_manager_version values (18, now()); +INSERT into iem_schema_manager_version values (19, now()); create table ncei_climdiv( station char(6), @@ -118,7 +118,11 @@ CREATE TABLE alldata( narr_srad real, merra_srad real, era5land_srad real, - hrrr_srad real + hrrr_srad real, + era5land_soilt4_avg real, + era5land_soilm4_avg real, + nldas_soilt4_avg real, + nldas_soilm4_avg real ) PARTITION by range(station); ALTER TABLE alldata OWNER to mesonet; GRANT ALL on alldata to ldm; diff --git a/upgrade/coop/19.sql b/upgrade/coop/19.sql new file mode 100644 index 0000000..8cf6996 --- /dev/null +++ b/upgrade/coop/19.sql @@ -0,0 +1,4 @@ +alter table alldata add era5land_soilt4_avg real; +alter table alldata add era5land_soilm4_avg real; +alter table alldata add nldas_soilt4_avg real; +alter table alldata add nldas_soilm4_avg real; From b404c9240c2e056793d00b495cf72cf063773ac9 Mon Sep 17 00:00:00 2001 From: akrherz Date: Wed, 24 Jan 2024 12:22:53 -0600 Subject: [PATCH 2/2] chore: bump ruff --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84d5a48..2e7aec4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.13" + rev: "v0.1.14" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix]