From 9ade75c0b31513116cfa7c637bd9c09be5b46a4f Mon Sep 17 00:00:00 2001 From: akrherz Date: Mon, 3 Mar 2025 14:02:37 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Address=20schema=20issues=20foun?= =?UTF-8?q?d=20with=20new=20testing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/iem.sql | 3 +++ init/other.sql | 18 +++++++++++++++++- init/postgis.sql | 2 ++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/init/iem.sql b/init/iem.sql index a6d07b8..0f7bd05 100644 --- a/init/iem.sql +++ b/init/iem.sql @@ -678,12 +678,15 @@ CREATE TABLE rwis_traffic_sensors( lane_id smallint, name varchar(64) ); +alter table rwis_traffic_sensors owner to mesonet; +grant select on rwis_traffic_sensors to nobody; CREATE OR REPLACE view rwis_traffic_meta AS SELECT l.id as location_id, l.nwsli as nwsli, s.id as sensor_id, s.lane_id as lane_id FROM rwis_locations l, rwis_traffic_sensors s WHERE l.id = s.location_id; +grant select on rwis_traffic_meta to nobody; CREATE TABLE rwis_traffic_data( diff --git a/init/other.sql b/init/other.sql index 93d3564..ce8a84f 100644 --- a/init/other.sql +++ b/init/other.sql @@ -247,7 +247,23 @@ begin end; $do$; --- ----------------------------------- +------------------------------------- +create table flux_meta( + station text, + surface text, + sts timestamp, + ets timestamp +); +alter table flux_meta owner to mesonet; +grant select on flux_meta to nobody; + +create table flux_vars( + name text, + units text, + details text +); +alter table flux_vars owner to mesonet; +grant select on flux_vars to nobody; CREATE TABLE flux_data( station character varying(10), diff --git a/init/postgis.sql b/init/postgis.sql index 6c84384..7aa7a3c 100644 --- a/init/postgis.sql +++ b/init/postgis.sql @@ -295,6 +295,8 @@ CREATE TABLE robins( name varchar, city varchar, day date); +alter table robins owner to mesonet; +grant select on robins to nobody; SELECT AddGeometryColumn('robins', 'the_geom', 4326, 'POINT', 2); ---