Module org.jooq
Package org.jooq

Interface Migration

All Superinterfaces:
Scope

@Experimental public interface Migration extends 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 Summary

    Modifier and Type
    Method
    Description
    void
    Create a baseline from the current schema using the pending changes, if they match.
    void
    Apply the migration.
    @NotNull Commit
    The version that is being migrated from.
    @Nullable Commit
    The last ContentType.SNAPSHOT commit that is being migrated from, or null if there's no snapshot.
    void
    Log the most recent versions from the migration history to the configured logger.
    void
    Log the pending migration to the configured logger.
    void
    Log the untracked database changes of the migration schemas.
    @NotNull Queries
    The queries that are executed by the migration.
    @NotNull Commit
    to()
    The version that is being migrated to.
    @NotNull Queries
    The queries that describe the untracked schema objects.
    void
    Verify the correctness of a migration.

    Methods inherited from interface org.jooq.Scope

    configuration, creationTime, data, data, data, dialect, dsl, family, settings