Revision: 12504 https://dev.openbravo.com/websvn/openbravo/?rev=12504&sc=1 Author: marvintm Date: 2009-01-29 17:35:18 +0100 (Thu, 29 Jan 2009)
Log Message: ----------- [quickbuild] update last database update timestamp after create.database or update.database Modified Paths: -------------- trunk/src-db/database/build-create.xml trunk/src-db/database/build.xml Modified: trunk/src-db/database/build-create.xml =================================================================== --- trunk/src-db/database/build-create.xml 2009-01-29 16:34:10 UTC (rev 12503) +++ trunk/src-db/database/build-create.xml 2009-01-29 16:35:18 UTC (rev 12504) @@ -69,6 +69,7 @@ verbosity="${bbdd.verbosity}" /> <antcall target="database.postimport.${bbdd.rdbms}" /> <antcall target="database.postcreate.${bbdd.rdbms}" /> + <antcall target="update.dbupdate.timestamp" /> </target> @@ -350,4 +351,21 @@ <target name="database.poststructure.POSTGRE"> </target> + <target name="update.dbupdate.timestamp"> + <sql driver="${bbdd.driver}" + url="${bbdd.url}" + userid="${bbdd.user}" + password="${bbdd.password}" + delimiter="/"> + <classpath> + <fileset dir="${base.lib}"> + <include name="**/*.jar"> + </include> + </fileset> + </classpath> + <transaction> + UPDATE AD_SYSTEM_INFO SET LAST_DBUPDATE=NOW() + </transaction> + </sql> + </target> </project> Modified: trunk/src-db/database/build.xml =================================================================== --- trunk/src-db/database/build.xml 2009-01-29 16:34:10 UTC (rev 12503) +++ trunk/src-db/database/build.xml 2009-01-29 16:35:18 UTC (rev 12504) @@ -133,6 +133,7 @@ verbosity="${bbdd.verbosity}" /> <antcall target="database.postimport.${bbdd.rdbms}" /> <antcall target="database.postcreate.${bbdd.rdbms}" /> + <antcall target="update.dbupdate.timestamp" /> </target> <target name="export.config.script"> @@ -188,7 +189,8 @@ dataFilter="*/src-db/database/sourcedata" userId="0" propertiesFile="${base.config}/Openbravo.properties"/> - <antcall target="database.postupdate.${bbdd.rdbms}" /> + <antcall target="database.postupdate.${bbdd.rdbms}" /> + <antcall target="update.dbupdate.timestamp" /> </target> <target name="update.database.mod"> @@ -652,4 +654,22 @@ <target name="database.poststructure.POSTGRE"> </target> + <target name="update.dbupdate.timestamp"> + <sql driver="${bbdd.driver}" + url="${bbdd.owner.url}" + userid="${bbdd.user}" + password="${bbdd.password}" + onerror="continue" + autocommit="true"> + <classpath> + <fileset dir="${base.lib}"> + <include name="**/*.jar"> + </include> + </fileset> + </classpath> + <transaction> + UPDATE AD_SYSTEM_INFO SET LAST_BUILD=NOW() + </transaction> + </sql> + </target> </project> ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits