diff --git a/core/src/main/resources/db/migration/V7__project_parent_phase2_review.sql b/core/src/main/resources/db/migration/V7__project_parent_phase2_review.sql new file mode 100644 index 0000000000..2fa8341982 --- /dev/null +++ b/core/src/main/resources/db/migration/V7__project_parent_phase2_review.sql @@ -0,0 +1,16 @@ + +alter table `project` + add column `parent_project_id` bigint(20) null default null; + +alter table `project` + add column `root_project_id` bigint(20) null default null; + +alter table `project` + add constraint fk_project_parent_project_id_project_id + foreign key (parent_project_id) references project(id) + on delete cascade on update cascade; + +alter table `project` + add constraint fk_project_root_project_id_project_id + foreign key (root_project_id) references project(id) + on delete cascade on update cascade;