Add minor version as code revision for core module
authorAsier Lostalé <asier.lostale@openbravo.com>
Mon, 24 Nov 2008 10:47:44 +0000
changeset 2074 2e692a43545e
parent 2073 e3c4c6280127
child 2075 27c053d06462
Add minor version as code revision for core module
src-db/database/build-create.xml
src-db/database/build.xml
src-db/database/sourcedata/AD_MODULE.xml
--- a/src-db/database/build-create.xml	Sat Nov 22 19:41:54 2008 +0000
+++ b/src-db/database/build-create.xml	Mon Nov 24 10:47:44 2008 +0000
@@ -286,6 +286,7 @@
           CALL AD_UPDATE_SEQUENCE();
           CALL AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET ISINDEVELOPMENT='N', ISDEFAULT='N', SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL, ISREGISTERED='N' WHERE STATUS IS NULL OR STATUS='I';
+        	UPDATE AD_MODULE SET VERSION = (SUBSTR(VERSION, 1, INSTR(VERSION, '.', -1))|| ${code.revision}) WHERE AD_MODULE_ID = '0';
         </transaction>
     </sql>
   </target>
@@ -316,6 +317,7 @@
           SELECT AD_UPDATE_SEQUENCE();
           SELECT AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET ISINDEVELOPMENT='N', ISDEFAULT='N', SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL, ISREGISTERED='N' WHERE STATUS IS NULL OR STATUS='I';
+        	UPDATE AD_MODULE SET VERSION = (SUBSTR(VERSION, 1, INSTR(VERSION, '.', -1))|| ${code.revision}) WHERE AD_MODULE_ID = '0';
         </transaction>
     </sql>
   </target>
--- a/src-db/database/build.xml	Sat Nov 22 19:41:54 2008 +0000
+++ b/src-db/database/build.xml	Mon Nov 24 10:47:44 2008 +0000
@@ -578,6 +578,7 @@
           CALL AD_UPDATE_SEQUENCE();
           CALL AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET ISINDEVELOPMENT='N', ISDEFAULT='N', SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL, ISREGISTERED='N' WHERE STATUS IS NULL OR STATUS='I';
+        	UPDATE AD_MODULE SET VERSION = (SUBSTR(VERSION, 1, INSTR(VERSION, '.', -1))|| ${code.revision}) WHERE AD_MODULE_ID = '0';
         </transaction>
     </sql>
   </target>
@@ -608,6 +609,7 @@
           SELECT AD_UPDATE_SEQUENCE();
           SELECT AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET ISINDEVELOPMENT='N', ISDEFAULT='N', SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL, ISREGISTERED='N' WHERE STATUS IS NULL OR STATUS='I';
+        	UPDATE AD_MODULE SET VERSION = (SUBSTR(VERSION, 1, INSTR(VERSION, '.', -1))|| ${code.revision}) WHERE AD_MODULE_ID = '0';
         </transaction>
     </sql>
   </target>
@@ -634,6 +636,7 @@
         	CALL AD_UPDATE_SEQUENCE();
           CALL AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET ISINDEVELOPMENT='N', ISDEFAULT='N', SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL, ISREGISTERED='N' WHERE STATUS IS NULL OR STATUS='I';
+        	UPDATE AD_MODULE SET VERSION = (SUBSTR(VERSION, 1, INSTR(VERSION, '.', -1))|| ${code.revision}) WHERE AD_MODULE_ID = '0';
         </transaction>
     </sql>
   </target>
@@ -659,6 +662,7 @@
           SELECT AD_UPDATE_SEQUENCE();
           SELECT AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET ISINDEVELOPMENT='N', ISDEFAULT='N', SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL, ISREGISTERED='N' WHERE STATUS IS NULL OR STATUS='I';
+        	UPDATE AD_MODULE SET VERSION = (SUBSTR(VERSION, 1, INSTR(VERSION, '.', -1))|| ${code.revision}) WHERE AD_MODULE_ID = '0';
         </transaction>
     </sql>
   </target>
--- a/src-db/database/sourcedata/AD_MODULE.xml	Sat Nov 22 19:41:54 2008 +0000
+++ b/src-db/database/sourcedata/AD_MODULE.xml	Mon Nov 24 10:47:44 2008 +0000
@@ -20,7 +20,7 @@
 <!--0 NAME-->
 <!--0-->              <NAME><![CDATA[core]]></NAME>
 <!--0 VERSION-->
-<!--0-->              <VERSION><![CDATA[2.50.0000]]></VERSION>
+<!--0-->              <VERSION><![CDATA[2.50.10440]]></VERSION>
 <!--0 DESCRIPTION-->
 <!--0-->              <DESCRIPTION><![CDATA[Core module is the base one]]></DESCRIPTION>
 <!--0 HELP-->