Minor refactoring
This commit is contained in:
parent
59b65c370c
commit
36d7e38a93
|
@ -17,19 +17,12 @@
|
|||
package org.adempiere.process;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.MClient;
|
||||
import org.compiere.model.MSequence;
|
||||
import org.compiere.process.SvrProcess;
|
||||
import org.compiere.util.CLogMgt;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Trx;
|
||||
|
||||
/**
|
||||
* Sign Database Build
|
||||
|
@ -51,13 +44,11 @@ public class SignDatabaseBuild
|
|||
|
||||
PreparedStatement updateStmt = null;
|
||||
try {
|
||||
updateStmt = DB.prepareStatement(
|
||||
"UPDATE AD_System "
|
||||
+ "SET LastBuildInfo = ? "
|
||||
+ "WHERE AD_System_ID = 0",
|
||||
null);
|
||||
String upd = "UPDATE AD_System SET LastBuildInfo = ?";
|
||||
updateStmt = DB.prepareStatement(upd, null);
|
||||
updateStmt.setString(1, Adempiere.getImplementationVersion());
|
||||
System.out.println(updateStmt);
|
||||
s_log.info(upd);
|
||||
System.out.println(upd); // Also show the update to the console
|
||||
updateStmt.executeUpdate();
|
||||
|
||||
} catch (Exception ex) {
|
||||
|
|
Loading…
Reference in New Issue