Revision: 3211
Author: [email protected]
Date: Wed Dec 16 12:49:09 2009
Log: The IndexEditPanel does not want to have the column's index changed when it is rearranging the columns as it would push the columns out of a primary key index. Instead normalize will be called on the columns later.
http://code.google.com/p/power-architect/source/detail?r=3211

Modified:
/branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/IndexEditPanel.java

=======================================
--- /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/IndexEditPanel.java Tue Dec 1 14:35:17 2009 +++ /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/IndexEditPanel.java Wed Dec 16 12:49:09 2009
@@ -280,7 +280,7 @@
                             if (column != null) {
                                 column.setPrimaryKeySeq(Integer.MAX_VALUE);
                                 parentTable.removeColumn(column);
-                                parentTable.addColumn(column, i);
+                                parentTable.addColumn(column, i, false);
                                 i++;
                             }
                         }

Reply via email to