mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#374 - Refactor to support generating multiple platform DDL for a single migration
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user