- All Superinterfaces:
Iterable<HistoryVersion>
,Scope
The History of
Version
elements as installed by previous
Migrations
.
This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether any history is available on the current database.@NotNull HistoryVersion
current()
The currently installedVersion
.void
Resolve any previous failures in theHistory
.@NotNull HistoryVersion
root()
The rootVersion
.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.jooq.Scope
configuration, creationTime, data, data, data, dialect, dsl, family, settings
-
Method Details
-
available
@Experimental boolean available()Whether any history is available on the current database.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
-
root
The rootVersion
.This corresponds to the
Configuration.commitProvider()
'sCommits.root()
if migrations have been initialised on the configured database.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Throws:
DataMigrationVerificationException
- If no root version is available (e.g. because no migration has happened yet). See alsoavailable()
.
-
current
The currently installedVersion
.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
- Throws:
DataMigrationVerificationException
- If no root version is available (e.g. because no migration has happened yet). See alsoavailable()
.
-
resolve
Resolve any previous failures in theHistory
.This is EXPERIMENTAL functionality and subject to change in future jOOQ versions.
-