Migrations setup Follies
This commit is contained in:
@@ -1,16 +1,40 @@
|
|||||||
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.MigrationModelInterface;
|
|
||||||
|
|
||||||
public class Migration_20240808175410 extends BaseMigration implements MigrationModelInterface{
|
import it.integry.ems.migration._base.BaseMigration;
|
||||||
|
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||||
|
import it.integry.ems_model.types.ApplicationName;
|
||||||
|
|
||||||
|
public class Migration_20240808175410 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void up()throws Exception {
|
public void up() throws Exception {
|
||||||
if(isHistoryDB())
|
if (isHistoryDB())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (isTextiles()){
|
||||||
|
executeStatement("INSERT INTO stb_gest_setup VALUES (\n" +
|
||||||
|
"\t'W_TMPRODFIN_RC',\n" +
|
||||||
|
"\t'SETUP',\n" +
|
||||||
|
"\t'FLAG_CHK_MOD_ABBINAMENTI',\n" +
|
||||||
|
"\t'N',\n" +
|
||||||
|
"\t'Se impostato a S in fase di registrazione verifica se la linguetta degli abbinamenti è stata modificata, se si avvisa con un messaggio',\n" +
|
||||||
|
"\t'N',\n" +
|
||||||
|
"\tNULL,\n" +
|
||||||
|
"\t'N',\n" +
|
||||||
|
"\tNULL,\n" +
|
||||||
|
"\tNULL,\n" +
|
||||||
|
"\t'N',\n" +
|
||||||
|
"\t'N',\n" +
|
||||||
|
"\t'N',\n" +
|
||||||
|
"\tNULL,\n" +
|
||||||
|
"\tNULL,\n" +
|
||||||
|
"\tNULL);\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void down()throws Exception{
|
public void down() throws Exception {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,24 @@
|
|||||||
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;
|
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||||
|
|
||||||
public class Migration_20240808180809 extends BaseMigration implements MigrationModelInterface{
|
public class Migration_20240808180809 extends BaseMigration implements MigrationModelInterface {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void up()throws Exception {
|
public void up() throws Exception {
|
||||||
if(isHistoryDB())
|
if (isHistoryDB())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!isCustomerDb(IntegryCustomerDB.FolliesGroup_FolliesGroup))
|
||||||
|
return;
|
||||||
|
|
||||||
|
executeStatement("update stb_gest_setup set value = 'S' where gest_name = 'W_TMPRODFIN_RC' and section = 'SETUP' and key_section = 'FLAG_CHK_MOD_ABBINAMENTI'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void down()throws Exception{
|
public void down() throws Exception {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user