Merge branch 'master' into develop
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,24 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241216170251 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement(
|
||||
"alter table vtb_viaggi add cod_forn_trasp varchar(5);",
|
||||
"alter table vtb_viaggi add constraint fk_vtb_viaggi_gtb_anag Foreign key (cod_forn_trasp) references gtb_anag(cod_anag)",
|
||||
"alter table dtb_doct add cod_forn_trasp varchar(5);",
|
||||
"alter table dtb_doct add constraint fk_dtb_doct_gtb_anag Foreign key (cod_forn_trasp) references gtb_anag(cod_anag)"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241216171824 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("IMPORT_LISTINI ACQUISTO", "PAZIENZA", "PERC_ONERI", null,
|
||||
null, false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
|
||||
if (isCustomerDb(IntegryCustomerDB.Carelli_Carelli))
|
||||
updateSetupValue("IMPORT_LISTINI ACQUISTO", "PAZIENZA", "PERC_ONERI", "2");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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_20241217103711 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
|
||||
executeStatement("alter table dtb_dift add cod_forn_trasp varchar(5);",
|
||||
"alter table dtb_dif_bolle add cod_forn_trasp varchar(5);") ;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -77,6 +77,9 @@ public class VtbViaggi extends EntityBase {
|
||||
@SqlField(value = "destinazione")
|
||||
private String destinazione;
|
||||
|
||||
@SqlField(value = "cod_forn_trasp", maxLength = 5)
|
||||
private String codFornTrasp;
|
||||
|
||||
@Priority(value = 101, copyPk = false)
|
||||
private List<VtbViaggi> vtbViaggiList;
|
||||
|
||||
@@ -251,6 +254,15 @@ public class VtbViaggi extends EntityBase {
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodFornTrasp() {
|
||||
return codFornTrasp;
|
||||
}
|
||||
|
||||
public VtbViaggi setCodFornTrasp(String codFornTrasp) {
|
||||
this.codFornTrasp = codFornTrasp;
|
||||
return this;
|
||||
}
|
||||
|
||||
public enum Mezzo implements IBaseEnum<Mezzo> {
|
||||
VETTORE((short) 0), MITTENTE((short) 1), DESTINATARIO((short) 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user