task/3382: Harmonisera tabellnamn #6

Merged
ansv7779 merged 104 commits from task/3382 into develop 2024-11-12 13:33:44 +01:00
Showing only changes of commit d1bc4f225e - Show all commits

View File

@ -1,13 +1,380 @@
-- Step 1: standalone tables
/*
* Step 1: Remove obsolete tables
*/
-- alter table `plugin_settings` rename column `pluginName` to `plugin_name`;
drop table plugin_settings;
drop table turnitincheck;
-- Table: worker_data
alter table TurnitinSettings_expirationMails drop foreign key FK_lji32bekgobx76otvw7syu4hb;
drop table TurnitinSettings_expirationMails;
drop table TurnitinSettings;
/*
* Step 2: DomainObject related classes and tables.
*
* Many entity classes inherit directly or indirectly from abstract super class DomainObject. Two attributes
* dateCreated and lastModified, have changed mapping to column name with snake case, date_created and last_modified.
* This change affects many, many tables, which are to be managed at first.
*/
-- table: ActivityPlan
alter table `ActivityPlan` rename column `dateCreated` to `date_created`;
alter table `ActivityPlan` rename column `lastModified` to `last_modified`;
-- table: ActivityPlanTemplate
alter table `ActivityPlanTemplate` rename column `dateCreated` to `date_created`;
alter table `ActivityPlanTemplate` rename column `lastModified` to `last_modified`;
-- table: ActivityTemplate
alter table `ActivityTemplate` rename column `dateCreated` to `date_created`;
alter table `ActivityTemplate` rename column `lastModified` to `last_modified`;
-- table: file_description
alter table `file_description` rename column `dateCreated` to `date_created`;
alter table `file_description` rename column `lastModified` to `last_modified`;
-- table: answer
alter table `answer` rename column `dateCreated` to `date_created`;
alter table `answer` rename column `lastModified` to `last_modified`;
-- table: ApplicationPeriod
alter table `ApplicationPeriod` rename column `dateCreated` to `date_created`;
alter table `ApplicationPeriod` rename column `lastModified` to `last_modified`;
-- table: checklist
alter table `checklist` rename column `dateCreated` to `date_created`;
alter table `checklist` rename column `lastModified` to `last_modified`;
-- table: checklist_answer
alter table `checklist_answer` rename column `dateCreated` to `date_created`;
alter table `checklist_answer` rename column `lastModified` to `last_modified`;
-- table: checklist_category
alter table `checklist_category` rename column `dateCreated` to `date_created`;
alter table `checklist_category` rename column `lastModified` to `last_modified`;
-- table: checklist_question
alter table `checklist_question` rename column `dateCreated` to `date_created`;
alter table `checklist_question` rename column `lastModified` to `last_modified`;
-- table: checklist_template
alter table `checklist_template` rename column `dateCreated` to `date_created`;
alter table `checklist_template` rename column `lastModified` to `last_modified`;
-- table: comment
alter table `comment` rename column `dateCreated` to `date_created`;
alter table `comment` rename column `lastModified` to `last_modified`;
-- table: externallink
alter table `externallink` rename column `dateCreated` to `date_created`;
alter table `externallink` rename column `lastModified` to `last_modified`;
-- table: comment_thread
alter table `comment_thread` rename column `dateCreated` to `date_created`;
alter table `comment_thread` rename column `lastModified` to `last_modified`;
-- table: FinalSeminarSettings
alter table `FinalSeminarSettings` rename column `dateCreated` to `date_created`;
alter table `FinalSeminarSettings` rename column `lastModified` to `last_modified`;
-- table: FinalThesis
alter table `FinalThesis` rename column `dateCreated` to `date_created`;
alter table `FinalThesis` rename column `lastModified` to `last_modified`;
-- table: footer_address
alter table `footer_address` rename column `dateCreated` to `date_created`;
alter table `footer_address` rename column `lastModified` to `last_modified`;
-- table: footer_link
alter table `footer_link` rename column `dateCreated` to `date_created`;
alter table `footer_link` rename column `lastModified` to `last_modified`;
-- table: general_system_settings
alter table `general_system_settings` rename column `dateCreated` to `date_created`;
alter table `general_system_settings` rename column `lastModified` to `last_modified`;
-- table: grading_report_template
alter table `grading_report_template` rename column `dateCreated` to `date_created`;
alter table `grading_report_template` rename column `lastModified` to `last_modified`;
-- table: project_group
alter table `project_group` rename column `dateCreated` to `date_created`;
alter table `project_group` rename column `lastModified` to `last_modified`;
-- table: idea
alter table `idea` rename column `dateCreated` to `date_created`;
alter table `idea` rename column `lastModified` to `last_modified`;
-- table: idea_export
alter table `idea_export` rename column `dateCreated` to `date_created`;
alter table `idea_export` rename column `lastModified` to `last_modified`;
-- table: mail_event
alter table `mail_event` rename column `dateCreated` to `date_created`;
alter table `mail_event` rename column `lastModified` to `last_modified`;
-- table: idea_match
alter table `idea_match` rename column `dateCreated` to `date_created`;
alter table `idea_match` rename column `lastModified` to `last_modified`;
-- table: milestone
alter table `milestone` rename column `dateCreated` to `date_created`;
alter table `milestone` rename column `lastModified` to `last_modified`;
-- table: NonWorkDayPeriod
alter table `NonWorkDayPeriod` rename column `dateCreated` to `date_created`;
alter table `NonWorkDayPeriod` rename column `lastModified` to `last_modified`;
-- table: note
alter table `note` rename column `dateCreated` to `date_created`;
alter table `note` rename column `lastModified` to `last_modified`;
-- table: Notification
alter table `Notification` rename column `dateCreated` to `date_created`;
alter table `Notification` rename column `lastModified` to `last_modified`;
-- table: NotificationData
alter table `NotificationData` rename column `dateCreated` to `date_created`;
alter table `NotificationData` rename column `lastModified` to `last_modified`;
-- table: peer_request
alter table `peer_request` rename column `dateCreated` to `date_created`;
alter table `peer_request` rename column `lastModified` to `last_modified`;
-- table: peer_review
alter table `peer_review` rename column `dateCreated` to `date_created`;
alter table `peer_review` rename column `lastModified` to `last_modified`;
-- table: preliminary_match
alter table `preliminary_match` rename column `dateCreated` to `date_created`;
alter table `preliminary_match` rename column `lastModified` to `last_modified`;
-- table: Program
alter table `Program` rename column `dateCreated` to `date_created`;
alter table `Program` rename column `lastModified` to `last_modified`;
-- table: project
alter table `project` rename column `dateCreated` to `date_created`;
alter table `project` rename column `lastModified` to `last_modified`;
-- table: project_file
alter table `project_file` rename column `dateCreated` to `date_created`;
alter table `project_file` rename column `lastModified` to `last_modified`;
-- table: project_first_meeting
alter table `project_first_meeting` rename column `dateCreated` to `date_created`;
alter table `project_first_meeting` rename column `lastModified` to `last_modified`;
-- table: projectPartner
alter table `projectPartner` rename column `dateCreated` to `date_created`;
alter table `projectPartner` rename column `lastModified` to `last_modified`;
-- table: project_type_settings
alter table `project_type_settings` rename column `dateCreated` to `date_created`;
alter table `project_type_settings` rename column `lastModified` to `last_modified`;
-- table: reviewer_deadline_settings
alter table `reviewer_deadline_settings` rename column `dateCreated` to `date_created`;
alter table `reviewer_deadline_settings` rename column `lastModified` to `last_modified`;
-- table: reviewer_target
alter table `reviewer_target` rename column `dateCreated` to `date_created`;
alter table `reviewer_target` rename column `lastModified` to `last_modified`;
-- table: unit
alter table `unit` rename column `dateCreated` to `date_created`;
alter table `unit` rename column `lastModified` to `last_modified`;
-- table: urkund_submission
alter table `urkund_submission` rename column `dateCreated` to `date_created`;
alter table `urkund_submission` rename column `lastModified` to `last_modified`;
-- table: username
alter table `username` rename column `dateCreated` to `date_created`;
alter table `username` rename column `lastModified` to `last_modified`;
-- table: user_profile
alter table `user_profile` rename column `dateCreated` to `date_created`;
alter table `user_profile` rename column `lastModified` to `last_modified`;
-- table: worker_data
alter table `worker_data` rename column `dateCreated` to `date_created`;
alter table `worker_data` rename column `lastModified` to `last_modified`;
-- table: criterion
alter table `criterion` rename column `dateCreated` to `date_created`;
alter table `criterion` rename column `lastModified` to `last_modified`;
-- table: grading_criterion_template
alter table `grading_criterion_template` rename column `dateCreated` to `date_created`;
alter table `grading_criterion_template` rename column `lastModified` to `last_modified`;
-- table: GradingCriterion
alter table `GradingCriterion` rename column `dateCreated` to `date_created`;
alter table `GradingCriterion` rename column `lastModified` to `last_modified`;
-- table: GradingCriterionPoint
alter table `GradingCriterionPoint` rename column `dateCreated` to `date_created`;
alter table `GradingCriterionPoint` rename column `lastModified` to `last_modified`;
-- table: grading_criterion_point_template
alter table `grading_criterion_point_template` rename column `dateCreated` to `date_created`;
alter table `grading_criterion_point_template` rename column `lastModified` to `last_modified`;
-- table: ReviewerApproval
alter table `ReviewerApproval` rename column `dateCreated` to `date_created`;
alter table `ReviewerApproval` rename column `lastModified` to `last_modified`;
-- table: final_seminar_active_participation
alter table `final_seminar_active_participation` rename column `dateCreated` to `date_created`;
alter table `final_seminar_active_participation` rename column `lastModified` to `last_modified`;
-- table: final_seminar_opposition
alter table `final_seminar_opposition` rename column `dateCreated` to `date_created`;
alter table `final_seminar_opposition` rename column `lastModified` to `last_modified`;
-- table: final_seminar_respondent
alter table `final_seminar_respondent` rename column `dateCreated` to `date_created`;
alter table `final_seminar_respondent` rename column `lastModified` to `last_modified`;
-- table: report
alter table `report` rename column `dateCreated` to `date_created`;
alter table `report` rename column `lastModified` to `last_modified`;
-- table: notification_delivery_configuration
alter table `notification_delivery_configuration` rename column `dateCreated` to `date_created`;
alter table `notification_delivery_configuration` rename column `lastModified` to `last_modified`;
-- table: notification_receiver_configuration
alter table `notification_receiver_configuration` rename column `dateCreated` to `date_created`;
alter table `notification_receiver_configuration` rename column `lastModified` to `last_modified`;
-- table: Activity
alter table `Activity` rename column `dateCreated` to `date_created`;
alter table `Activity` rename column `lastModified` to `last_modified`;
-- table: final_seminar
alter table `final_seminar` rename column `dateCreated` to `date_created`;
alter table `final_seminar` rename column `lastModified` to `last_modified`;
-- table: forum_post
alter table `forum_post` rename column `dateCreated` to `date_created`;
alter table `forum_post` rename column `lastModified` to `last_modified`;
-- table: thread
alter table `thread` rename column `dateCreated` to `date_created`;
alter table `thread` rename column `lastModified` to `last_modified`;
-- table: Keyword
alter table `Keyword` rename column `dateCreated` to `date_created`;
alter table `Keyword` rename column `lastModified` to `last_modified`;
-- table: milestone_activity_template
alter table `milestone_activity_template` rename column `dateCreated` to `date_created`;
alter table `milestone_activity_template` rename column `lastModified` to `last_modified`;
-- table: milestone_phase_template
alter table `milestone_phase_template` rename column `dateCreated` to `date_created`;
alter table `milestone_phase_template` rename column `lastModified` to `last_modified`;
-- table: Password
alter table `Password` rename column `dateCreated` to `date_created`;
alter table `Password` rename column `lastModified` to `last_modified`;
-- table: ProjectType
alter table `ProjectType` rename column `dateCreated` to `date_created`;
alter table `ProjectType` rename column `lastModified` to `last_modified`;
-- table: researcharea
alter table `researcharea` rename column `dateCreated` to `date_created`;
alter table `researcharea` rename column `lastModified` to `last_modified`;
-- table: user
alter table `user` rename column `dateCreated` to `date_created`;
alter table `user` rename column `lastModified` to `last_modified`;
/*
* Step 3: standalone tables
*/
-- table: worker_data
alter table `worker_data` rename column `lastRun` to `last_run`;
alter table `worker_data` rename column `lastSuccessfulRun` to `last_successful_run`;
-- alter table `worker_data` rename column `dateCreated` to `date_created`;
-- alter table `worker_data` rename column `lastModified` to `last_modified`;
-- table: footer_link
alter table `footer_link` rename column `footerColumn` to `footer_column`;
alter table `footer_link` rename column `footerColumn` to `footer_column`;