Removed wrong sql statement in postupdate which set all modules as InDevelopment='N' after each update.database. Forced update.database to always execute apply.module.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Fri, 05 Feb 2010 13:10:22 +0100
changeset 6043 77fb11772ddd
parent 6042 ea3e82974e4e
child 6044 a9eeb25cc2a2
Removed wrong sql statement in postupdate which set all modules as InDevelopment='N' after each update.database. Forced update.database to always execute apply.module.
build.xml
src-db/database/build.xml
--- a/build.xml	Thu Feb 04 19:20:20 2010 +0100
+++ b/build.xml	Fri Feb 05 13:10:22 2010 +0100
@@ -554,7 +554,7 @@
     <ant dir="${base.db}" target="update.database.java" inheritAll="true" inheritRefs="true" />
     <updatesystemstatus v="RB21"/>
     <antcall target="generate.entities.quick" />
-    <antcall target="db.apply.modules" />
+    <antcall inheritall="true" inheritrefs="true" target="apply.module" />
   </target>
 
   <target name="update.database.mod" depends="init, core.lib, database.lib">
@@ -577,10 +577,6 @@
     <ant dir="${base.db}" target="export.config.script" inheritAll="true" inheritRefs="true" />
   </target>
 
-  <target name="db.apply.modules" if="apply.modules.on.create">
-    <antcall inheritall="true" inheritrefs="true" target="apply.module" />
-  </target>
-
   <target name="db.apply.modules.sampledata" if="apply.modules.on.create">
     <antcall target="generate.entities" />
     <antcall inheritall="true" inheritrefs="true" target="apply.module" />
--- a/src-db/database/build.xml	Thu Feb 04 19:20:20 2010 +0100
+++ b/src-db/database/build.xml	Fri Feb 05 13:10:22 2010 +0100
@@ -179,7 +179,7 @@
       <transaction>
           UPDATE AD_SYSTEM_INFO SET CODE_REVISION=SUBSTR('${code.revision}',1,60);
           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 SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL WHERE STATUS IS NULL OR STATUS='I';
           CALL AD_LANGUAGE_CREATE(NULL);
         </transaction>
     </sql>
@@ -196,7 +196,7 @@
       <transaction>
           UPDATE AD_SYSTEM_INFO SET CODE_REVISION=SUBSTR('${code.revision}',1,60);
           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 SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL WHERE STATUS IS NULL OR STATUS='I';
           SELECT AD_LANGUAGE_CREATE(NULL);
         </transaction>
     </sql>