Class PendingDrops
- java.lang.Object
-
- io.ebeaninternal.dbmigration.model.PendingDrops
-
public class PendingDrops extends Object
The migrations with pending un-applied drops.
-
-
Constructor Summary
Constructors Constructor Description PendingDrops()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(io.ebean.migration.MigrationVersion version, ChangeSet changeSet)
Add a 'pending drops' changeSet for the given version.boolean
appliedDropsFor(ChangeSet changeSet)
All the pending drops for this migration version have been applied so we need to remove the (unsuppressed) pending drops for this version.Migration
migrationForVersion(String pendingVersion)
Return the migration for the pending drops from a version.List<String>
pendingDrops()
Return the list of versions with pending drops.void
registerPendingHistoryDropColumns(ModelContainer newModel)
Register pending drop columns on history tables to the new model.
-
-
-
Constructor Detail
-
PendingDrops
public PendingDrops()
-
-
Method Detail
-
add
public void add(io.ebean.migration.MigrationVersion version, ChangeSet changeSet)
Add a 'pending drops' changeSet for the given version.
-
pendingDrops
public List<String> pendingDrops()
Return the list of versions with pending drops.
-
appliedDropsFor
public boolean appliedDropsFor(ChangeSet changeSet)
All the pending drops for this migration version have been applied so we need to remove the (unsuppressed) pending drops for this version.
-
migrationForVersion
public Migration migrationForVersion(String pendingVersion)
Return the migration for the pending drops from a version.The value of version can be "next" to find the first un-applied pending drops.
-
registerPendingHistoryDropColumns
public void registerPendingHistoryDropColumns(ModelContainer newModel)
Register pending drop columns on history tables to the new model.
-
-