From 71ffc5b4cfe10324c75b9d1301f436a3576d0109 Mon Sep 17 00:00:00 2001 From: FabioN Date: Tue, 18 Nov 2025 17:26:44 +0100 Subject: [PATCH 1/2] Attivazione nuova gestione produzione --- .../migration/model/Migration_20251117170957.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java diff --git a/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java b/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java new file mode 100644 index 0000000000..622806b299 --- /dev/null +++ b/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java @@ -0,0 +1,15 @@ +package it.integry.ems.migration.model;import it.integry.ems.migration._base.BaseMigration; +import it.integry.ems.migration._base.MigrationModelInterface; + +public class Migration_20251117170957 extends BaseMigration implements MigrationModelInterface{ + + @Override + public void up()throws Exception { + if(isHistoryDB()) + return; + } + + @Override + public void down()throws Exception { + } +} \ No newline at end of file From 8fe752e595e327c0e66f39eda5c6b07b2df1acd9 Mon Sep 17 00:00:00 2001 From: FabioN Date: Tue, 18 Nov 2025 17:26:52 +0100 Subject: [PATCH 2/2] Attivazione nuova gestione produzione --- .../model/Migration_20251117170957.java | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java b/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java index 622806b299..9d8e9968dc 100644 --- a/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java +++ b/ems-core/src/main/java/it/integry/ems/migration/model/Migration_20251117170957.java @@ -1,15 +1,33 @@ -package it.integry.ems.migration.model;import it.integry.ems.migration._base.BaseMigration; +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_20251117170957 extends BaseMigration implements MigrationModelInterface{ +public class Migration_20251117170957 extends BaseMigration implements MigrationModelInterface { @Override - public void up()throws Exception { - if(isHistoryDB()) + public void up() throws Exception { + if (isHistoryDB()) return; + + if (!isCustomerDb(IntegryCustomerDB.Gramm_Gramm)) + return; + + executeStatement("update stb_gest_setup set value = 'S' where gest_name = 'DTB_ORDT' and key_section in ('NUOVA_PROCEDURA','DISABLE_TRIGGER_ORDL')"); + executeStatement("update stb_gest_sync set syncronize = 'R' where gest_name like 'lord%'"); + executeStatement("update stb_gest_sync set syncronize = 'R' where gest_name like 'pord%'"); + executeStatement("insert into stb_abil \n" + + "select case when gest_name = 'lordi' then 'LG081' else 'AG031' end , user_name, 'S', case when gest_name = 'lordi' then 'lordi_tab' else 'pordi_tab' end from stb_abil \n" + + "where gest_name in ('lordi','pordi') and case when gest_name = 'lordi' then 'LG081' else 'AG031' end + user_name not in (select cod_opz + user_name from stb_abil where cod_opz in ('LG081','AG031'))"); + executeStatement("update stb_abil set flag_abil = 'N' where gest_name in ('lordi','pordi')"); + + + + } @Override - public void down()throws Exception { + public void down() throws Exception { } } \ No newline at end of file