doortts doortts 2016-07-16
db: Fix project_visitation cascade option
It fixes #73 issue
@e137dfe94f292b93c1928de1ca21ed037e52dcfd
 
conf/evolutions/default/5.sql (added)
+++ conf/evolutions/default/5.sql
@@ -0,0 +1,6 @@
+# --- !Ups
+ALTER TABLE project_visitation DROP FOREIGN KEY fk_project_visitation_project_31;
+alter table project_visitation add constraint fk_project_visitation_project_31 foreign key (project_id) references project (id) on delete CASCADE on update CASCADE;
+
+# --- !Downs
+
Add a comment
List