From efdcd50cdc75a21a1229c8a8edcfdff64cb9d6b8 Mon Sep 17 00:00:00 2001 From: Philip Date: Tue, 24 Sep 2024 09:19:13 -0700 Subject: [PATCH] Fixing scrape SQL schema for text HUC10 field type --- packages/rme/rme/database/rme_scrape_huc_statistics.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rme/rme/database/rme_scrape_huc_statistics.sql b/packages/rme/rme/database/rme_scrape_huc_statistics.sql index 081427cbb..8b667a288 100644 --- a/packages/rme/rme/database/rme_scrape_huc_statistics.sql +++ b/packages/rme/rme/database/rme_scrape_huc_statistics.sql @@ -106,7 +106,7 @@ VALUES (50,'Wyoming','WY'); CREATE TABLE metrics ( - huc10 INT NOT NULL REFERENCES hucs(huc10) ON DELETE CASCADE, + huc10 TEXT NOT NULL REFERENCES hucs(huc10) ON DELETE CASCADE, state_id INT REFERENCES us_states(id) ON DELETE CASCADE, owner_id INT REFERENCES owners(id) ON DELETE CASCADE, flow_id INT REFERENCES flows(id) ON DELETE CASCADE,