Merge branch 'develop' into feature/Feature-ORDL
# Conflicts: # ems-core/src/main/java/it/integry/ems_model/business_logic/ProductionBusinessLogic.java
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240805105151 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
|
||||
deleteSetup("w_pordi_rc", "GENERA_LOTTO_PROD", "GENERA_LOTTO_AUTOMATICO");
|
||||
createSetupQuery("SI_NO", "SI_NO", "SELECT 'S' UNION ALL SELECT 'N'");
|
||||
createSetup("w_pordi_rc", "GENERA_LOTTO_PROD", "GENERA_LOTTO_AUTOMATICO", null, "Genera automaticamente il lotto di lavorazione su produzioni in cui non è specificato (utilizza suggestcode azienda)", false, "SI_NO", false, true, false, false, false, null, false, "SELECT 'S' UNION ALL SELECT 'N'");
|
||||
|
||||
executeInsertStatement("insert into stb_gest_setup_depo\n" +
|
||||
" select replace(key_section, 'GENERA_LOTTO_AUTOMATICO_DEP_', '') as cod_mdep,\n" +
|
||||
" gest_name, section,\n" +
|
||||
" 'GENERA_LOTTO_AUTOMATICO' as key_section, value, flag_sync\n" +
|
||||
" from stb_gest_setup where key_section like 'GENERA_LOTTO_AUTOMATICO_DEP_%'");
|
||||
|
||||
executeStatement("delete\n" +
|
||||
" from stb_gest_setup where key_section like 'GENERA_LOTTO_AUTOMATICO_DEP_%'");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user