Package org.flywaydb.gradle.task
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:
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
-
-
Field Summary
-
Fields inherited from class org.flywaydb.gradle.task.AbstractFlywayTask
baselineDescription, baselineOnMigrate, baselineVersion, batch, callbacks, cleanDisabled, cleanOnValidationError, configFileEncoding, configFiles, configurations, connectRetries, defaultSchema, driver, dryRunOutput, encoding, errorOverrides, extension, group, ignoreFutureMigrations, ignoreIgnoredMigrations, ignoreMissingMigrations, ignorePendingMigrations, initSql, installedBy, licenseKey, locations, mixed, oracleSqlplus, oracleSqlplusWarn, outOfOrder, outputQueryResults, password, placeholderPrefix, placeholderReplacement, placeholders, placeholderSuffix, repeatableSqlMigrationPrefix, resolvers, schemas, skipDefaultCallbacks, skipDefaultResolvers, sqlMigrationPrefix, sqlMigrationSeparator, sqlMigrationSuffixes, stream, table, tablespace, target, undoSqlMigrationPrefix, url, user, validateMigrationNaming, validateOnMigrate, workingDirectory
-
-
Constructor Summary
Constructors Constructor Description FlywayRepairTask()
-
Method Summary
Modifier and Type Method Description protected java.lang.Object
run(org.flywaydb.core.Flyway flyway)
Executes the task's custom behavior.-
Methods inherited from class org.flywaydb.gradle.task.AbstractFlywayTask
runTask
-
Methods inherited from class org.gradle.api.internal.AbstractTask
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
-
-
-
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 classAbstractFlywayTask
- Parameters:
flyway
- The Flyway instance to use.- Returns:
- The result of the task.
-
-