Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
package it.integry.ems.migration.model;
|
||||||
|
|
||||||
|
import it.integry.ems.migration._base.BaseMigration;
|
||||||
|
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||||
|
|
||||||
|
public class Migration_20240827093636 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void up() throws Exception {
|
||||||
|
if (isHistoryDB())
|
||||||
|
return;
|
||||||
|
|
||||||
|
createSetup("CRUSCOTTO_PRODUZIONE", "SETUP", "DATAWINDOW_PRODUZIONI_CUSTOM", null,
|
||||||
|
"DW custom elenco produzioni", false, null, false, false,
|
||||||
|
false, false, false, null, false, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void down() throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
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_20240827100201 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void up() throws Exception {
|
||||||
|
if (isHistoryDB())
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!isCustomerDb(IntegryCustomerDB.Agricoper_Agricoper))
|
||||||
|
return;
|
||||||
|
|
||||||
|
updateSetupValue("CRUSCOTTO_PRODUZIONE", "SETUP", "DATAWINDOW_PRODUZIONI_CUSTOM", "d_jcruscotto_produzioni_agricoper_el",
|
||||||
|
"DW custom elenco produzioni", false, null, false, false, false,
|
||||||
|
false, false, null, false, null);
|
||||||
|
|
||||||
|
executeStatement("DELETE\n" +
|
||||||
|
"FROM stb_gest_setup_depo\n" +
|
||||||
|
"WHERE gest_name = 'CRUSCOTTO_PRODUZIONE'\n" +
|
||||||
|
" AND section = 'SETUP'\n" +
|
||||||
|
" AND key_section = 'DATAWINDOW_PRODUZIONI_CUSTOM'"
|
||||||
|
);
|
||||||
|
|
||||||
|
executeStatement("DELETE\n" +
|
||||||
|
"FROM wtb_gest_setup_user\n" +
|
||||||
|
"WHERE gest_name = 'CRUSCOTTO_PRODUZIONE'\n" +
|
||||||
|
" AND section = 'SETUP'\n" +
|
||||||
|
" AND key_section = 'DATAWINDOW_PRODUZIONI_CUSTOM'"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void down() throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user