diff --git a/init/other.sql b/init/other.sql index dce66ec..74d12df 100644 --- a/init/other.sql +++ b/init/other.sql @@ -3,7 +3,7 @@ CREATE TABLE iem_schema_manager_version( version int, updated timestamptz); -INSERT into iem_schema_manager_version values (13, now()); +INSERT into iem_schema_manager_version values (14, now()); --- --- Stuart Smith Park Hydrology Learning Lab @@ -108,7 +108,23 @@ CREATE TABLE alldata ( pday real, pmonth real, srad real, - c1tmpf real + tsoil_4in_f real, + tsoil_8in_f real, + tsoil_16in_f real, + tsoil_20in_f real, + tsoil_32in_f real, + tsoil_40in_f real, + tsoil_64in_f real, + tsoil_128in_f real, + skyc1 char(3), + skyc2 char(3), + skyc3 char(3), + skyc4 char(3), + skyl1 int, + skyl2 int, + skyl3 int, + skyl4 int, + srad_1h_j real ) PARTITION by range(valid); do diff --git a/upgrade/other/14.sql b/upgrade/other/14.sql new file mode 100644 index 0000000..3c05007 --- /dev/null +++ b/upgrade/other/14.sql @@ -0,0 +1,18 @@ +-- Storage of WMO BUFR Station Data +alter table alldata add tsoil_4in_f real; +alter table alldata add tsoil_8in_f real; +alter table alldata add tsoil_16in_f real; +alter table alldata add tsoil_20in_f real; +alter table alldata add tsoil_32in_f real; +alter table alldata add tsoil_40in_f real; +alter table alldata add tsoil_64in_f real; +alter table alldata add tsoil_128in_f real; +alter table alldata add skyc1 char(3); +alter table alldata add skyc2 char(3); +alter table alldata add skyc3 char(3); +alter table alldata add skyc4 char(3); +alter table alldata add skyl1 int; +alter table alldata add skyl2 int; +alter table alldata add skyl3 int; +alter table alldata add skyl4 int; +alter table alldata add srad_1h_j real;