Skip to content

Commit

Permalink
Fix for annotation SQL update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Nov 6, 2024
1 parent fb3f41b commit 43f640c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/upgrade/text_annotation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ALTER TABLE model.annotation_text OWNER TO openatlas;

ALTER TABLE ONLY model.annotation_text ADD CONSTRAINT annotation_text_pkey PRIMARY KEY (id);
CREATE TRIGGER update_modified BEFORE UPDATE ON model.annotation_text FOR EACH ROW EXECUTE FUNCTION model.update_modified();
ALTER TABLE ONLY model.annotation_text ADD CONSTRAINT annotation_text_entity_id_fkey FOREIGN KEY (entity_id) REFERENCES model.entity(id) ON UPDATE CASCADE ON DELETE CASCADE;
ALTER TABLE ONLY model.annotation_text ADD CONSTRAINT annotation_text_entity_id_fkey FOREIGN KEY (entity_id) REFERENCES model.entity(id) ON UPDATE CASCADE ON DELETE SET NULL;
ALTER TABLE ONLY model.annotation_text ADD CONSTRAINT annotation_text_source_id_fkey FOREIGN KEY (source_id) REFERENCES model.entity(id) ON UPDATE CASCADE ON DELETE CASCADE;

END;

0 comments on commit 43f640c

Please sign in to comment.