THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

db: Change foreigen key option of issue table

It can help to prevent organization deletion error.
working-next
Suwon Chae 1 year ago
parent
commit
b75e3172e4
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      conf/evolutions/default/25.sql

+ 7
- 0
conf/evolutions/default/25.sql View File

@ -0,0 +1,7 @@
# --- !Ups
ALTER TABLE issue DROP FOREIGN KEY fk_issue_assignee_9;
ALTER TABLE issue ADD CONSTRAINT fk_issue_assignee_9 FOREIGN KEY (assignee_id) REFERENCES assignee (id) ON DELETE SET NULL ON UPDATE CASCADE;
ALTER TABLE issue DROP FOREIGN KEY fk_issue_project_7;
ALTER TABLE issue ADD CONSTRAINT fk_issue_project_7 FOREIGN KEY (project_id) REFERENCES project (id) ON DELETE CASCADE ON UPDATE CASCADE;
# --- !Downs

Loading…
Cancel
Save