Implemented basic functions
This commit is contained in:
parent
89f483171a
commit
965e2daeb3
22 changed files with 711 additions and 58 deletions
9
sql/00006.sql
Normal file
9
sql/00006.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
CREATE TABLE public.problem (
|
||||
id serial8 NOT NULL,
|
||||
trigger_id int4 NOT NULL,
|
||||
"start" timestamptz DEFAULT now() NOT NULL,
|
||||
"end" timestamptz NULL,
|
||||
acknowledged bool DEFAULT false NOT NULL,
|
||||
CONSTRAINT problem_pk PRIMARY KEY (id),
|
||||
CONSTRAINT problem_trigger_fk FOREIGN KEY (trigger_id) REFERENCES public."trigger"(id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
);
|
||||
1
sql/00007.sql
Normal file
1
sql/00007.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE datapoint DROP COLUMN section_id;
|
||||
Loading…
Add table
Add a link
Reference in a new issue