Merge remote-tracking branch 'origin/develop' 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,47 @@
|
||||
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;
|
||||
import it.integry.ems_model.entity.StbGestSetupDet;
|
||||
import it.integry.ems_model.types.OperationType;
|
||||
|
||||
public class Migration_20250807165031 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
deleteSetup("PVM", "CHIUSURA_TAGLI_PREZZO", "COD_MGRP");
|
||||
|
||||
createSetup("PVM", "CHIUSURA_TAGLI_PREZZO", "COD_MGRP", null,
|
||||
"Setup per filtrare i gruppi disponibili per gruppo utente.", false, "COD_MGRP", false, false,
|
||||
false, false, false, "Wtb_user_groups", true);
|
||||
|
||||
if (isCustomerDb(IntegryCustomerDB.Carelli_Carelli)) {
|
||||
StbGestSetupDet stbGestSetupDet = new StbGestSetupDet()
|
||||
.setGestName("PVM")
|
||||
.setSection("CHIUSURA_TAGLI_PREZZO")
|
||||
.setKeySection("COD_MGRP")
|
||||
.setTipoSetup("Wtb_user_groups")
|
||||
.setValColRif("10")
|
||||
.setValue("02");
|
||||
|
||||
stbGestSetupDet.setOperation(OperationType.INSERT_OR_UPDATE);
|
||||
|
||||
stbGestSetupDet.manageWithParentConnection(connection);
|
||||
}
|
||||
|
||||
createSetupQuery("COD_PROMO", "COD_PROMO", "SELECT cod_promo FROM vtb_promo");
|
||||
createSetup("PVM", "CHIUSURA_TAGLI_PREZZO", "COD_PROMO", null,
|
||||
"Setup per filtrare le promo disponibili per gruppo utente.", false, "COD_PROMO", false, false,
|
||||
false, false, false, "Wtb_user_groups", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user