Class FlywayRepairTask

  • All Implemented Interfaces:
    java.lang.Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

    public class FlywayRepairTask
    extends AbstractFlywayTask
    Repairs the Flyway schema history table. This will perform the following actions:
    • Remove any failed migrations on databases without DDL transactions (User objects left behind must still be cleaned up manually)
    • Realign the checksums, descriptions and types of the applied migrations with the ones of the available migrations
    • Constructor Detail

      • FlywayRepairTask

        public FlywayRepairTask()
    • Method Detail

      • run

        protected java.lang.Object run​(org.flywaydb.core.Flyway flyway)
        Description copied from class: AbstractFlywayTask
        Executes the task's custom behavior.
        Specified by:
        run in class AbstractFlywayTask
        Parameters:
        flyway - The Flyway instance to use.
        Returns:
        The result of the task.