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 4 additions and 4 deletions
Showing only changes of commit 28e617ef9b - Show all commits

View File

@ -72,7 +72,7 @@ public class Activity extends LazyDeletableDomainObject {
private Checklist checklist;
@OneToOne(optional = true, cascade = CascadeType.ALL)
@JoinColumn(name = "file_reference_id", referencedColumnName = "id")
@JoinColumn(name = "upload_file_reference_id", referencedColumnName = "id")
private FileReference fileUpload;
//</editor-fold>

View File

@ -1841,7 +1841,7 @@ alter table `activity` change `action` `action` varchar(64) not null default 'no
alter table `activity` change `editable` `editable` bit(1) not null default b'1' after `action`;
alter table `activity` rename column `activityTemplate_id` to `activity_plan_id`;
alter table `activity` rename column `file_upload_reference_id` to `file_reference_id`;
alter table `activity` rename column `file_upload_reference_id` to `upload_file_reference_id`;
alter table `activity` add constraint uk_activity_checklist_id unique (checklist_id);
create index idx_activity_deleted on activity(deleted);
@ -1852,8 +1852,8 @@ alter table `activity`
on delete cascade on update cascade ;
alter table `activity`
add constraint `fk_activity_file_reference_id`
foreign key (file_reference_id) references file_reference (id)
add constraint `fk_activity_upload_file_reference_id`
foreign key (upload_file_reference_id) references file_reference (id)
on delete cascade on update cascade ;
-- table: ActivityPlan