Revision: 3335
Author: [email protected]
Date: Thu Feb 25 08:35:51 2010
Log: Indexes were not handled properly by sqlScriptGenerator()
http://code.google.com/p/power-architect/source/detail?r=3335
Modified:
/trunk/src/ca/sqlpower/architect/swingui/CompareDMFormatter.java
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/CompareDMFormatter.java Wed
Feb 24 14:00:05 2010
+++ /trunk/src/ca/sqlpower/architect/swingui/CompareDMFormatter.java Thu
Feb 25 08:35:51 2010
@@ -272,6 +272,9 @@
} else if (chunk.getData() instanceof SQLRelationship) {
SQLRelationship r = (SQLRelationship)chunk.getData();
gen.addRelationship(r);
+ } else if (chunk.getData() instanceof SQLIndex) {
+ SQLIndex i = (SQLIndex)chunk.getData();
+ gen.addIndex(i);
} else {
throw new IllegalStateException("DiffChunk is an
unexpected type.");
}