Commit 112d4eda authored by Piotr Gawron's avatar Piotr Gawron

project file_id must be valid (refere to file table)

parent ebc1eec6
update project_table set file_entry_id = null where not file_entry_id in (select id from file_entry_table);
ALTER TABLE project_table ADD CONSTRAINT project_file_constraint FOREIGN KEY (file_entry_id)
REFERENCES public.file_entry_table (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment