Skip to content

Commit 067da05

Browse files
authored
Merge pull request #259 from akrherz/rwis_feel_rh
✨ Add feel,relh RWIS alldata storage
2 parents 4f575ef + ca6cb89 commit 067da05

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

init/rwis.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
CREATE TABLE iem_schema_manager_version(
44
version int,
55
updated timestamptz);
6-
INSERT into iem_schema_manager_version values (7, now());
6+
INSERT into iem_schema_manager_version values (8, now());
77

88
CREATE TABLE sensors(
99
station varchar(5),
@@ -13,7 +13,6 @@ CREATE TABLE sensors(
1313
sensor3 varchar(100)
1414
);
1515
GRANT SELECT on sensors to nobody;
16-
1716

1817
CREATE TABLE alldata(
1918
station varchar(6),
@@ -33,7 +32,9 @@ CREATE TABLE alldata(
3332
tfs2_text text,
3433
tfs3_text text,
3534
pcpn real,
36-
vsby real
35+
vsby real,
36+
feel real,
37+
relh real
3738
) PARTITION by range(valid);
3839
ALTER TABLE alldata OWNER to mesonet;
3940
GRANT ALL on alldata to ldm;

upgrade/rwis/8.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Store more things
2+
alter table alldata add feel real;
3+
alter table alldata add relh real;

0 commit comments

Comments
 (0)