Added nodata code

This commit is contained in:
Magnus Åhall 2024-05-25 09:40:40 +02:00
parent b22e99a072
commit 1185ebd030
5 changed files with 137 additions and 19 deletions

4
sql/00014.sql Normal file
View file

@ -0,0 +1,4 @@
ALTER TABLE datapoint ADD COLUMN nodata_problem_seconds INT4 NOT NULL DEFAULT 0;
ALTER TABLE datapoint ADD COLUMN nodata_is_problem BOOL NOT NULL DEFAULT false;
CREATE INDEX datapoint_last_value_idx ON public.datapoint ("last_value");