continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <wsm...@gmail.com>
Subject Data Management export and import for 1.2.x -> 1.3.x ... do I really have to?
Date Thu, 05 Feb 2009 23:04:18 GMT
I've got a dozen Continuum instances to upgrade and I'm not really
looking forward to the process of exporting, importing and then fixing
the next available key values in each one of them.

ISTR someone (Brett?) saying that the only problematic change is a new
column that is required and has no default value.

Can anyone confirm or deny?  If it's true, which one is it and what
would I need to modify in a 1.2.x database to make it usable with
1.3.1?

Here's the diff of continuum.xml between 1.2.3 and 1.3.1:

imbrium:mdo wsmoak$ svn diff
https://svn.apache.org/repos/asf/continuum/tags/continuum-1.2.3/continuum-model/src/main/mdo/continuum.xml
https://svn.apache.org/repos/asf/continuum/tags/continuum-1.3.1/continuum-model/src/main/mdo/continuum.xml
Index: continuum.xml
===================================================================
--- continuum.xml	(.../continuum-1.2.3/continuum-model/src/main/mdo/continuum.xml)	(revision
741334)
+++ continuum.xml	(.../continuum-1.3.1/continuum-model/src/main/mdo/continuum.xml)	(revision
741334)
@@ -99,6 +99,14 @@
             <multiplicity>*</multiplicity>
           </association>
         </field>
+        <field>
+          <name>projectScmRoots</name>
+          <version>1.1.3+</version>
+          <association>
+            <type>ProjectScmRoot</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
       </fields>
     </class>

@@ -128,7 +136,7 @@
           <version>1.0.9+</version>
           <type>String</type>
         </field>
-        <field jpox.mapped-by="projectGroup"
jpox.fetch-groups="projectgroup-projects project-build-details">
+        <field jpox.mapped-by="projectGroup"
jpox.fetch-groups="projectgroup-projects project-build-details
project-with-scm-result">
           <name>projects</name>
           <version>1.0.9+</version>
           <association jpox.join="false">
@@ -335,7 +343,14 @@
             <type>BuildDefinition</type>
             <multiplicity>*</multiplicity>
           </association>
-        </field>
+        </field>
+        <field jpox.fetch-groups="project-all-details
project-with-scm-details">
+          <name>scmResult</name>
+          <version>1.1.3+</version>
+          <association>
+            <type>ScmResult</type>
+          </association>
+        </field>
       </fields>
     </class>

@@ -418,6 +433,12 @@
             <multiplicity>*</multiplicity>
           </association>
         </field>
+        <field>
+          <name>sendOnScmFailure</name>
+          <version>1.1.3+</version>
+          <type>boolean</type>
+          <defaultValue>false</defaultValue>
+        </field>
       </fields>
       <codeSegments>
         <codeSegment>
@@ -572,6 +593,7 @@
           <version>1.0.9+</version>
           <type>int</type>
         </field>
+        <!-- TODO: remove -->
         <field jpox.fetch-groups="build-result-with-details">
           <name>scmResult</name>
           <version>1.0.9+</version>
@@ -1008,6 +1030,27 @@
       </fields>
     </class>
     <class>
+      <name>BuildQueue</name>
+      <version>1.1.4+</version>
+      <description><![CDATA[
+       Build queue.
+      ]]></description>
+      <fields>
+        <field>
+          <name>id</name>
+          <version>1.1.4+</version>
+          <identifier>true</identifier>
+          <type>int</type>
+        </field>
+        <field>
+          <name>name</name>
+          <version>1.1.4+</version>
+          <type>String</type>
+          <required>true</required>
+        </field>
+      </fields>
+    </class>
+    <class>
       <name>Schedule</name>
       <version>1.0.9+</version>
       <description><![CDATA[
@@ -1066,6 +1109,14 @@
           <version>1.0.9+</version>
           <type>String</type>
         </field>
+        <field jpox.fetch-groups="schedule-build-queues">
+          <name>buildQueues</name>
+          <version>1.1.4+</version>
+          <association xml.reference="true" stash.part="true"
jpox.dependent="false">
+            <type>BuildQueue</type>
+            <multiplicity>*</multiplicity>
+          </association>
+        </field>
       </fields>
     </class>

@@ -1222,6 +1273,17 @@
           <type>String</type>
           <defaultValue>release-output-directory</defaultValue>
         </field>
+        <field>
+          <name>numberOfBuildsInParallel</name>
+          <version>1.1.4+</version>
+          <type>int</type>
+          <defaultValue>1</defaultValue>
+        </field>
+        <field>
+          <name>distributedBuildEnabled</name>
+          <version>1.1.4+</version>
+          <type>boolean</type>
+        </field>
       </fields>
     </class>

@@ -1290,6 +1352,8 @@
     public final static int UPDATING = 8;
     public final static int WARNING = 9;
     public final static int CHECKEDOUT = 10;
+    public final static int UPDATED = 5;
+    public final static int CANCELLED = 11;

     // TODO: maybe move these to another class
     public static final int TRIGGER_FORCED = 1;
@@ -1527,5 +1591,48 @@
         </field>
       </fields>
     </class>
+
+    <class>
+      <name>ProjectScmRoot</name>
+      <version>1.1.3+</version>
+      <packageName>org.apache.continuum.model.project</packageName>
+      <fields>
+        <field>
+          <name>id</name>
+          <version>1.1.3+</version>
+          <identifier>true</identifier>
+          <type>int</type>
+        </field>
+        <field>
+          <name>scmRootAddress</name>
+          <version>1.1.3+</version>
+          <type>String</type>
+          <required>true</required>
+        </field>
+        <field>
+          <name>oldState</name>
+          <version>1.1.3+</version>
+          <type>int</type>
+        </field>
+        <field jpox.column="scmRootState">
+          <name>state</name>
+          <version>1.1.3+</version>
+          <type>int</type>
+        </field>
+        <field stash.maxSize="8192">
+          <name>error</name>
+          <version>1.1.3+</version>
+          <type>String</type>
+        </field>
+        <field>
+          <name>projectGroup</name>
+          <version>1.1.3+</version>
+          <association xml.reference="true" stash.part="true"
jpox.dependent="false">
+            <type>ProjectGroup</type>
+          </association>
+          <required>true</required>
+        </field>
+      </fields>
+    </class>
   </classes>
 </model>

-- 
Wendy

Mime
View raw message