task/3382: Harmonisera tabellnamn #6

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

View File

@ -13,6 +13,7 @@ public class FooterLink extends DomainObject {
private Long id;
@Enumerated(EnumType.STRING)
@Column(name="footer_column")
private FooterColumn footerColumn;
@Basic(optional = false)

View File

@ -21,10 +21,10 @@ public class WorkerData extends DomainObject {
@Column(unique=true, nullable=false)
private String name;
@Column(nullable=false)
@Column(nullable=false, name="last_run")
private Date lastRun=new Date();
@Column(nullable=false)
@Column(nullable=false, name="last_successful_run")
private Date lastSuccessfulRun;
@PreUpdate

View File

@ -0,0 +1,13 @@
-- batch 1: standalone tables
--alter table `plugin_settings` rename `pluginName` to `plugin_name`;
-- Table: worker_data
alter table `worker_data` rename `lastRun` to `last_run`;
alter table `worker_data` rename `lastSuccessfulRun` to `last_successful_run`;
-- alter table `worker_data` rename `dateCreated` to `date_created`;
-- alter table `worker_data` rename `lastModified` to `last_modified`;
alter table `footer_link` rename `footerColumn` to `footer_column`;