There is a bug when Diff determines that you need to drop a Primary Key Constraint where the ‘tableName’ attribute isn’t included in the tag. It gives the following error:
org.xml.sax.SAXParseException: cvc-complex-type.4: Attribute 'tableName' must appear on element 'dropPrimaryKey'.
This can be fixed by removing this line:
- change.setTableName(pk.getTablespace());
from:
DiffResult.addUnexpectedPrimaryKeyChanges()