#374 - Refactor to support generating multiple platform DDL for a single migration

This commit is contained in:
Robin Bygrave
2015-08-17 16:03:51 +12:00
parent c1c45139a0
commit 24971bcc86
5 changed files with 234 additions and 169 deletions
@@ -50,6 +50,15 @@ public class ModelDiff {
this.baseModel = new ModelContainer();
}
/**
* Return true if the apply and drop changes are both empty.
* This means there are no migration changes.
*/
public boolean isEmpty() {
return applyChanges.isEmpty() && dropChanges.isEmpty();
}
/**
* Return the diff as a migration potentially containing
* an apply changeSet and a drop changeSet.