modificata migration mina

This commit is contained in:
2024-08-05 16:04:09 +02:00
parent 3a3c0ae1c3
commit 30d1c061e4

View File

@@ -19,7 +19,8 @@ public class Migration_20240805105151 extends BaseMigration implements Migration
" 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_%'");
" from stb_gest_setup where key_section like 'GENERA_LOTTO_AUTOMATICO_DEP_%'\n"+
"and exists(select * from mtb_depo where cod_mdep = replace(key_section, 'GENERA_LOTTO_AUTOMATICO_DEP_', '') )");
executeStatement("delete\n" +
" from stb_gest_setup where key_section like 'GENERA_LOTTO_AUTOMATICO_DEP_%'");