Skip to content
Snippets Groups Projects
Commit b89ce2ee authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #9349: made mom_id and otdb_id in task table unique

parent bcf3192e
No related branches found
No related tags found
No related merge requests found
...@@ -141,8 +141,8 @@ ALTER TABLE resource_allocation.specification ...@@ -141,8 +141,8 @@ ALTER TABLE resource_allocation.specification
CREATE TABLE resource_allocation.task ( CREATE TABLE resource_allocation.task (
id serial NOT NULL, id serial NOT NULL,
mom_id integer, mom_id integer UNIQUE,
otdb_id integer, otdb_id integer UNIQUE,
status_id integer NOT NULL REFERENCES resource_allocation.task_status DEFERRABLE INITIALLY IMMEDIATE, status_id integer NOT NULL REFERENCES resource_allocation.task_status DEFERRABLE INITIALLY IMMEDIATE,
type_id integer NOT NULL REFERENCES resource_allocation.task_type DEFERRABLE INITIALLY IMMEDIATE, type_id integer NOT NULL REFERENCES resource_allocation.task_type DEFERRABLE INITIALLY IMMEDIATE,
specification_id integer NOT NULL REFERENCES resource_allocation.specification ON DELETE CASCADE DEFERRABLE INITIALLY IMMEDIATE, specification_id integer NOT NULL REFERENCES resource_allocation.specification ON DELETE CASCADE DEFERRABLE INITIALLY IMMEDIATE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment