add unique index on check_id
This commit is contained in:
parent
bfd2b5d324
commit
6da89f825c
@ -57,7 +57,7 @@ CREATE TABLE notifications (
|
|||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE active_checks (
|
CREATE TABLE active_checks (
|
||||||
check_id bigint NOT NULL references checks(id) on delete cascade,
|
check_id bigint NOT NULL unique references checks(id) on delete cascade,
|
||||||
cmdline text[] NOT NULL,
|
cmdline text[] NOT NULL,
|
||||||
next_time timestamp with time zone DEFAULT now() NOT NULL,
|
next_time timestamp with time zone DEFAULT now() NOT NULL,
|
||||||
states integer[] DEFAULT ARRAY[0] NOT NULL,
|
states integer[] DEFAULT ARRAY[0] NOT NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user