inserito campo data_ins sulla vtb_dist_incar
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250116163313 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("ALTER TABLE vtb_dist_incar ADD data_ins datetime;",
|
||||
"UPDATE vtb_dist_incar SET data_ins = data_dist;",
|
||||
"ALTER TABLE vtb_dist_incar ALTER COLUMN data_ins datetime NOT NULL;");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,18 @@
|
||||
package it.integry.ems_model.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import it.integry.common.var.CommonConstants;
|
||||
import it.integry.ems_model.annotation.PK;
|
||||
import it.integry.ems_model.annotation.SqlDetailId;
|
||||
import it.integry.ems_model.annotation.SqlField;
|
||||
import it.integry.ems_model.annotation.Table;
|
||||
import it.integry.ems_model.base.EntityBase;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@PropertyReactive
|
||||
@Table(VtbDistIncar.ENTITY)
|
||||
@@ -68,6 +69,9 @@ public class VtbDistIncar extends EntityBase {
|
||||
@SqlField(value = "ser_doc", maxLength = 2)
|
||||
private String serDoc;
|
||||
|
||||
@SqlField(value = "data_ins", nullable = false, defaultObjectValue = CommonConstants.TIMESTAMP)
|
||||
private Date dataIns;
|
||||
|
||||
private String flagTipoFatturazione;
|
||||
|
||||
public VtbDistIncar() {
|
||||
@@ -185,4 +189,12 @@ public class VtbDistIncar extends EntityBase {
|
||||
public void setFlagTipoFatturazione(String flagTipoFatturazione) {
|
||||
this.flagTipoFatturazione = flagTipoFatturazione;
|
||||
}
|
||||
public Date getDataIns() {
|
||||
return dataIns;
|
||||
}
|
||||
|
||||
public void setDataIns(Date dataIns) {
|
||||
this.dataIns = dataIns;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user