Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions init/iem.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
18 changes: 17 additions & 1 deletion init/other.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 2 additions & 0 deletions init/postgis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);

---
Expand Down
Loading