Changed datamodel, integrated poll configuration into tenant meta data table
* updated sql scripts to update new collums * updated coressponding JPA class TenantMetaData Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
This commit is contained in:
committed by
Nonnenmacher Fabian
parent
acc0770d36
commit
1f9c6bfd72
@@ -13,8 +13,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
/**
|
||||
* Defines the polling time for the controllers in HH:MM:SS notation.
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
@ConfigurationProperties(prefix = "hawkbit.controller")
|
||||
@@ -38,5 +36,4 @@ public class ControllerPollProperties {
|
||||
public void setPollingOverdueTime(final String pollingOverdue) {
|
||||
this.pollingOverdueTime = pollingOverdue;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -60,6 +60,12 @@ public class TenantMetaData implements Serializable {
|
||||
@Column(name = "tenant", nullable = false, length = 40)
|
||||
private String tenant;
|
||||
|
||||
@Column(name = "polling_time", nullable = true, length = 10)
|
||||
private String pollingTime;
|
||||
|
||||
@Column(name = "polling_overdue_time", nullable = true, length = 10)
|
||||
private String pollingOverdueTime;
|
||||
|
||||
private String createdBy;
|
||||
private String lastModifiedBy;
|
||||
private Long createdAt;
|
||||
@@ -256,4 +262,19 @@ public class TenantMetaData implements Serializable {
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getPollingTime() {
|
||||
return pollingTime;
|
||||
}
|
||||
|
||||
public void setPollingTime(String pollingTime) {
|
||||
this.pollingTime = pollingTime;
|
||||
}
|
||||
|
||||
public String getPollingOverdueTime() {
|
||||
return pollingOverdueTime;
|
||||
}
|
||||
|
||||
public void setPollingOverdueTime(String pollingOverdueTime) {
|
||||
this.pollingOverdueTime = pollingOverdueTime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE sp_tenant ADD polling_time varchar(10);
|
||||
ALTER TABLE sp_tenant ADD polling_overdue_time varchar(10);
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE sp_tenant ADD polling_time varchar(10);
|
||||
ALTER TABLE sp_tenant ADD polling_overdue_time varchar(10);
|
||||
|
||||
Reference in New Issue
Block a user