cancellati campi da mtb_aart_carat
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250505181805 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("exec DropPrimaryKey 'mtb_aart_carat'\n",
|
||||
"exec DropForeignKey 'mtb_aart_carat', 'mtb_stip'\n",
|
||||
"exec DropForeignKey 'mtb_aart_carat', 'mtb_tipi'\n",
|
||||
"alter table mtb_aart_carat drop column cod_mstp\n",
|
||||
"alter table mtb_aart_carat drop column cod_mtip\n",
|
||||
"alter table mtb_aart_carat add constraint pk_mtb_aart_carat primary key (cod_mart, carat)");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -25,16 +25,6 @@ public class MtbAartCarat extends EntityBase {
|
||||
@SqlField(value = "cod_mart", maxLength = 15, nullable = false)
|
||||
private String codMart;
|
||||
|
||||
@PK
|
||||
@ImportFromParent
|
||||
@SqlField(value = "cod_mtip", maxLength = 5, nullable = false)
|
||||
private String codMtip;
|
||||
|
||||
@PK
|
||||
@ImportFromParent
|
||||
@SqlField(value = "cod_mstp", maxLength = 5, nullable = false)
|
||||
private String codMstp;
|
||||
|
||||
@PK
|
||||
@SqlField(value = "carat", maxLength = 40, nullable = false)
|
||||
private String carat;
|
||||
@@ -60,22 +50,6 @@ public class MtbAartCarat extends EntityBase {
|
||||
this.codMart = codMart;
|
||||
}
|
||||
|
||||
public String getCodMtip() {
|
||||
return codMtip;
|
||||
}
|
||||
|
||||
public void setCodMtip(String codMtip) {
|
||||
this.codMtip = codMtip;
|
||||
}
|
||||
|
||||
public String getCodMstp() {
|
||||
return codMstp;
|
||||
}
|
||||
|
||||
public void setCodMstp(String codMstp) {
|
||||
this.codMstp = codMstp;
|
||||
}
|
||||
|
||||
public String getCarat() {
|
||||
return carat;
|
||||
}
|
||||
|
||||
@@ -474,8 +474,6 @@ public class ImportImeService {
|
||||
mtbAartCarat = new MtbAartCarat();
|
||||
mtbAartCarat.setOperation(OperationType.INSERT);
|
||||
mtbAartCarat.setCodMart(codMart);
|
||||
mtbAartCarat.setCodMtip(codAlis);
|
||||
mtbAartCarat.setCodMstp(codMstp);
|
||||
mtbAartCarat.setCarat(carat);
|
||||
mtbAartCaratList.add(mtbAartCarat);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user