change order of update steps
authorAndreas M��ller <a.mueller@bgbm.org>
Thu, 4 Jun 2015 10:45:54 +0000 (10:45 +0000)
committerAndreas M��ller <a.mueller@bgbm.org>
Thu, 4 Jun 2015 10:45:54 +0000 (10:45 +0000)
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v35_36/SchemaUpdater_35_36.java

index f418551691866df13941eef4c906f141983731f5..fa05ea11100ca8113c0385b4bf81ec11541298cd 100644 (file)
@@ -67,13 +67,6 @@ public class SchemaUpdater_35_36 extends SchemaUpdaterBase {
 
                List<ISchemaUpdaterStep> stepList = new ArrayList<ISchemaUpdaterStep>();
 
-               //add hasMoreMembers
-               stepName = "Add hasMoreMembers to Team";
-               tableName = "AgentBase";
-               newColumnName = "hasMoreMembers";
-               step = ColumnAdder.NewBooleanInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT, false);
-               stepList.add(step);
-
         //#4843
         //Allow NULL for DefinedTermBase_SupportedCategoricalEnumeration
                //.supportedcategoricalenumerations_id
@@ -92,6 +85,13 @@ public class SchemaUpdater_35_36 extends SchemaUpdaterBase {
         step = UniqueIndexDropper.NewInstance(tableName, oldColumnName, ! INCLUDE_AUDIT);
         stepList.add(step);
 
+        //add hasMoreMembers
+        stepName = "Add hasMoreMembers to Team";
+        tableName = "AgentBase";
+        newColumnName = "hasMoreMembers";
+        step = ColumnAdder.NewBooleanInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT, false);
+        stepList.add(step);
+
         //SingleReadAlignment firstSeqPosition
         stepName = "Add firstSeqPosition";
         tableName = "SingleReadAlignment";