Revision: 3991
Author: [email protected]
Date: Wed Nov 24 11:57:00 2010
Log: A tiny fix for DDL generation so that DROP INDEX statements are
generated instead of CREATE INDEX when the index is being removed.
http://code.google.com/p/power-architect/source/detail?r=3991
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMFormatter.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMFormatter.java
Thu Nov 11 13:42:48 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/swingui/CompareDMFormatter.java
Wed Nov 24 11:57:00 2010
@@ -256,7 +256,7 @@
gen.dropRelationship(r);
} else if (chunk.getData() instanceof SQLIndex) {
SQLIndex i = (SQLIndex)chunk.getData();
- gen.addIndex(i);
+ gen.dropIndex(i);
} else {
throw new IllegalStateException("DiffChunk is an
unexpected type.");
}