- All Superinterfaces:
- Scope
An executable migration between two 
Commit instances.
 
 This type is a Scope with independent lifecycle and its own
 Scope.data() map.
 
This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Author:
- Lukas Eder
- 
Method SummaryModifier and TypeMethodDescriptionvoidbaseline()Set the migration baseline toto().voidexecute()Apply the migration.@NotNull Commitfrom()The version that is being migrated from.@Nullable CommitThe lastContentType.SNAPSHOTcommit that is being migrated from, ornullif there's no snapshot.voidLog the most recent versions from the migration history to the configured logger.voidLog the pending migration to the configured logger.voidLog the untracked database changes of the migration schemas.@NotNull Queriesqueries()The queries that are executed by the migration.@NotNull QueriesThe queries that revert the untracked schema objects.@NotNull Committo()The version that is being migrated to.@NotNull QueriesThe queries that describe the untracked schema objects.voidverify()Verify the correctness of a migration.Methods inherited from interface org.jooq.Scopeconfiguration, creationTime, data, data, data, dialect, dsl, family, settings
- 
Method Details- 
fromThe version that is being migrated from.
- 
fromSnapshotThe lastContentType.SNAPSHOTcommit that is being migrated from, ornullif there's no snapshot.This API is part of a commercial only feature. To use this feature, please use the jOOQ Professional Edition or the jOOQ Enterprise Edition. 
- 
toThe version that is being migrated to.
- 
queriesThe queries that are executed by the migration.
- 
untrackedThe queries that describe the untracked schema objects.
- 
revertUntrackedThe queries that revert the untracked schema objects.
- 
logHistoryLog the most recent versions from the migration history to the configured logger.
- 
logPendingLog the pending migration to the configured logger.
- 
logUntrackedLog the untracked database changes of the migration schemas.
- 
verifyVerify the correctness of a migration.- Throws:
- DataMigrationVerificationException- When something went wrong during the verification of the migration.
 
- 
baselineSet the migration baseline toto().- Throws:
- DataMigrationVerificationException- When something went wrong during the creation of the baseline.
 
- 
executeApply the migration.- Throws:
- DataMigrationException- When something went wrong during the application of the migration.
 
 
-