IDEMPIERE-187 Support developer to generate migration script from webui
This commit is contained in:
parent
96687acab4
commit
f9d7dd29ce
|
@ -435,7 +435,13 @@ public abstract class Convert
|
||||||
public static void logMigrationScript(String oraStatement, String pgStatement) {
|
public static void logMigrationScript(String oraStatement, String pgStatement) {
|
||||||
// Check AdempiereSys
|
// Check AdempiereSys
|
||||||
// check property Log migration script
|
// check property Log migration script
|
||||||
boolean logMigrationScript = Ini.isPropertyBool(Ini.P_LOGMIGRATIONSCRIPT);
|
boolean logMigrationScript = false;
|
||||||
|
if (Ini.isClient()) {
|
||||||
|
logMigrationScript = Ini.isPropertyBool(Ini.P_LOGMIGRATIONSCRIPT);
|
||||||
|
} else {
|
||||||
|
String sysProperty = System.getProperty(Ini.P_LOGMIGRATIONSCRIPT);
|
||||||
|
logMigrationScript = "y".equalsIgnoreCase(sysProperty) || "true".equalsIgnoreCase(sysProperty);
|
||||||
|
}
|
||||||
if (logMigrationScript) {
|
if (logMigrationScript) {
|
||||||
if (dontLog(oraStatement))
|
if (dontLog(oraStatement))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -88,7 +88,16 @@ public class MSequence extends X_AD_Sequence
|
||||||
int retValue = -1;
|
int retValue = -1;
|
||||||
|
|
||||||
// Check AdempiereSys
|
// Check AdempiereSys
|
||||||
boolean adempiereSys = Ini.isPropertyBool(Ini.P_ADEMPIERESYS);
|
boolean adempiereSys = false;
|
||||||
|
if (Ini.isClient())
|
||||||
|
{
|
||||||
|
adempiereSys = Ini.isPropertyBool(Ini.P_ADEMPIERESYS);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
String sysProperty = System.getProperty(Ini.P_ADEMPIERESYS);
|
||||||
|
adempiereSys = "y".equalsIgnoreCase(sysProperty) || "true".equalsIgnoreCase(sysProperty);
|
||||||
|
}
|
||||||
if (adempiereSys && AD_Client_ID > 11)
|
if (adempiereSys && AD_Client_ID > 11)
|
||||||
adempiereSys = false;
|
adempiereSys = false;
|
||||||
//
|
//
|
||||||
|
|
|
@ -89,8 +89,6 @@ public class WebUIServlet extends DHtmlLayoutServlet
|
||||||
|
|
||||||
logger = CLogger.getCLogger(WebUIServlet.class);
|
logger = CLogger.getCLogger(WebUIServlet.class);
|
||||||
|
|
||||||
// hengsin: temporary solution for problem with zk client
|
|
||||||
Ini.setProperty(Ini.P_ADEMPIERESYS, false);
|
|
||||||
logger.log(Level.OFF, "ADempiere web ui service started successfully");
|
logger.log(Level.OFF, "ADempiere web ui service started successfully");
|
||||||
/**
|
/**
|
||||||
* End ADempiere Start
|
* End ADempiere Start
|
||||||
|
|
Loading…
Reference in New Issue