task/3382: Harmonisera tabellnamn #6

Merged
ansv7779 merged 104 commits from task/3382 into develop 2024-11-12 13:33:44 +01:00
2 changed files with 30 additions and 1 deletions
Showing only changes of commit 1bbb178822 - Show all commits

View File

@ -30,7 +30,7 @@ public class GradingReportTemplate extends DomainObject {
private Long id;
@OneToOne(optional = false)
@JoinColumn(name = "proejct_type_id")
@JoinColumn(name = "project_type_id")
private ProjectType projectType;
@OneToMany(mappedBy = "gradingReportTemplate", cascade = {CascadeType.ALL})

View File

@ -1220,6 +1220,35 @@ alter table `user_profile_project_type`
foreign key (project_type_id) references project_type (id)
on delete cascade on update cascade;
/*
* Step 7: checklist related tables
*/
/*
* Step X: Many-to-Many tables between project and user.
*/
-- table: project_user_note (new changes from develop branch)
alter table `project_user_note` drop foreign key `FK_project_user_note_user`;
alter table `project_user_note` drop foreign key `FK_project_user_note_project`;
alter table `project_user_note` drop key `FK_project_user_note_user`;
alter table `project_user_note`
add constraint fk_project_user_note_project_id
foreign key (project_id) references project (id)
on delete cascade on update cascade;
alter table `project_user_note`
add constraint fk_project_user_note_user_id
foreign key (user_id) references user (id)
on delete cascade on update cascade;
/* Useful SQL