- Migration per cancellare ABILITA_DUPLICA_ORDINE e creare ABILITA_CREA_DUPLICA_ORDINE
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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_20240610105605 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
String value = "S";
|
||||
|
||||
if (isCustomerDb(IntegryCustomerDB.Gramm_Gramm)) {
|
||||
value = "N";
|
||||
}
|
||||
|
||||
deleteSetup("PVM", "MONITORAGGIO_LINEE_V2", "ABILITA_DUPLICA_ORDINE");
|
||||
|
||||
createSetup("PVM", "MONITORAGGIO_LINEE_V2", "ABILITA_CREA_DUPLICA_ORDINE", value,
|
||||
"Se la setup è abilitata permette di attivare il pulsante di creazione in Stato Ordini e il pulsante di duplicazione dell'ordine in storico ordini del Monitoraggio Linee",
|
||||
"SI_NO", false, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user