task/3382: Harmonisera tabellnamn #6
@ -13,6 +13,7 @@ public class FooterLink extends DomainObject {
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
|
@Column(name="footer_column")
|
||||||
private FooterColumn footerColumn;
|
private FooterColumn footerColumn;
|
||||||
|
|
||||||
@Basic(optional = false)
|
@Basic(optional = false)
|
||||||
|
@ -21,10 +21,10 @@ public class WorkerData extends DomainObject {
|
|||||||
@Column(unique=true, nullable=false)
|
@Column(unique=true, nullable=false)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Column(nullable=false)
|
@Column(nullable=false, name="last_run")
|
||||||
private Date lastRun=new Date();
|
private Date lastRun=new Date();
|
||||||
|
|
||||||
@Column(nullable=false)
|
@Column(nullable=false, name="last_successful_run")
|
||||||
private Date lastSuccessfulRun;
|
private Date lastSuccessfulRun;
|
||||||
|
|
||||||
@PreUpdate
|
@PreUpdate
|
||||||
|
@ -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`;
|
Loading…
x
Reference in New Issue
Block a user