Class FlywayRepairTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.flywaydb.gradle.task.AbstractFlywayTask
org.flywaydb.gradle.task.FlywayRepairTask
All Implemented Interfaces:
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 Details

    • FlywayRepairTask

      public FlywayRepairTask()
  • Method Details

    • run

      protected 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.