inserito campo cod_dtip_sped nella atb_forn
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
package it.integry.ems.migration.model;
|
||||||
|
|
||||||
|
import it.integry.ems.migration._base.BaseMigration;
|
||||||
|
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||||
|
|
||||||
|
public class Migration_20250218120808 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void up() throws Exception {
|
||||||
|
if (isHistoryDB())
|
||||||
|
return;
|
||||||
|
|
||||||
|
executeStatement("ALTER TABLE atb_forn ADD cod_dtip_sped VARCHAR(5)",
|
||||||
|
"ALTER TABLE atb_forn ADD CONSTRAINT [FK_atb_forn_dtb_tipi] FOREIGN KEY (cod_dtip_sped) REFERENCES dtb_tipi(cod_dtip)");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void down() throws Exception {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -112,6 +112,9 @@ public class AtbForn extends EntityBase implements EquatableEntityInterface<AtbF
|
|||||||
@SqlField(value = "flag_autofattura", maxLength = 1, defaultObjectValue = "N")
|
@SqlField(value = "flag_autofattura", maxLength = 1, defaultObjectValue = "N")
|
||||||
private String flagAutofattura;
|
private String flagAutofattura;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_dtip_sped", maxLength = 5)
|
||||||
|
private String codDtipSped;
|
||||||
|
|
||||||
@Priority(1)
|
@Priority(1)
|
||||||
private GtbAnag gtbAnag;
|
private GtbAnag gtbAnag;
|
||||||
|
|
||||||
@@ -424,6 +427,13 @@ public class AtbForn extends EntityBase implements EquatableEntityInterface<AtbF
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCodDtipSped() { return codDtipSped; }
|
||||||
|
|
||||||
|
public AtbForn setCodDtipSped(String codDtipSped) {
|
||||||
|
this.codDtipSped = codDtipSped;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCodeKey() {
|
public int hashCodeKey() {
|
||||||
return Objects.hash(getCodAnag());
|
return Objects.hash(getCodAnag());
|
||||||
|
|||||||
Reference in New Issue
Block a user