task/3382: Start with two standalone tables, footer_link and worker_data.

This commit is contained in:
Tom Zhao 2024-06-10 15:07:24 +02:00
parent eccf6937a3
commit 1005534ef7
3 changed files with 16 additions and 2 deletions
core/src/main
java/se/su/dsv/scipro
resources/db/migration

@ -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)

@ -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

@ -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`;