modificata migration mina
This commit is contained in:
@@ -19,7 +19,8 @@ public class Migration_20240805105151 extends BaseMigration implements Migration
|
|||||||
" select replace(key_section, 'GENERA_LOTTO_AUTOMATICO_DEP_', '') as cod_mdep,\n" +
|
" select replace(key_section, 'GENERA_LOTTO_AUTOMATICO_DEP_', '') as cod_mdep,\n" +
|
||||||
" gest_name, section,\n" +
|
" gest_name, section,\n" +
|
||||||
" 'GENERA_LOTTO_AUTOMATICO' as key_section, value, flag_sync\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" +
|
executeStatement("delete\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_%'");
|
||||||
|
|||||||
Reference in New Issue
Block a user