aggiunta setup
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-02-13 15:17:30 +01:00
parent 36abb60aa4
commit e13a73dd63

View File

@@ -0,0 +1,34 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.IntegryCustomer;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20250213123239 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
createSetupQuery("SI_NO", "SI_NO", "SELECT 'S' UNION ALL SELECT 'N'");
createSetup("w_ddocu_rc", "LOAD_COLLI", "IGNORA_TIPO_PEDANA", "N",
"Nel raggruppare gli articoli presenti nei colli ignora tipo pedana e colli per pedana.", false, "SI_NO", false, false,
false, false, false, null, false, "SELECT 'S' UNION ALL SELECT 'N'");
createSetupQuery("SI_NO", "SI_NO", "SELECT 'S' UNION ALL SELECT 'N'");
createSetup("w_ddocu_rc", "LOAD_COLLI", "IGNORA_COD_MDEP", "N",
"Nel raggruppare gli articoli presenti nei colli ignora il deposito", false, "SI_NO", false, false,
false, false, false, null, false, "SELECT 'S' UNION ALL SELECT 'N'");
if (isCustomer(IntegryCustomer.RossoGargano)){
updateSetupValue("w_ddocu_rc", "LOAD_COLLI", "IGNORA_TIPO_PEDANA", "S");
updateSetupValue("w_ddocu_rc", "LOAD_COLLI", "IGNORA_COD_MDEP", "S");
}
}
@Override
public void down() throws Exception {
}
}