diff --git a/sql/upgrade.sql b/sql/upgrade.sql index 189a5a644..8b1378917 100644 --- a/sql/upgrade.sql +++ b/sql/upgrade.sql @@ -1,7 +1 @@ -create table action_comment_document (acd_id bigint generated by default as identity primary key - , document_id bigint references document(d_id) on delete cascade on update cascade, - action_gestion_comment_id bigint references action_gestion_comment(agc_id) on delete cascade on update cascade); -alter table action_comment_document - add constraint action_comment_document_un - unique (document_id, action_gestion_comment_id);