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:
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>
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer
-
Field Summary
Fields inherited from class org.flywaydb.gradle.task.AbstractFlywayTask
baselineDescription, baselineOnMigrate, baselineVersion, batch, callbacks, cherryPick, cleanDisabled, cleanOnValidationError, configFileEncoding, configFiles, configurations, connectRetries, connectRetriesInterval, createSchemas, defaultSchema, detectEncoding, driver, dryRunOutput, encoding, errorOverrides, extension, failOnMissingLocations, group, ignoreMigrationPatterns, initSql, installedBy, jdbcProperties, kerberosConfigFile, licenseKey, locations, lockRetryCount, loggers, mixed, oracleSqlplus, oracleSqlplusWarn, oracleWalletLocation, outOfOrder, outputQueryResults, password, placeholderPrefix, placeholderReplacement, placeholders, placeholderSeparator, placeholderSuffix, pluginConfiguration, repeatableSqlMigrationPrefix, resolvers, schemas, scriptPlaceholderPrefix, scriptPlaceholderSuffix, skipDefaultCallbacks, skipDefaultResolvers, skipExecutingMigrations, sqlMigrationPrefix, sqlMigrationSeparator, sqlMigrationSuffixes, stream, table, tablespace, target, undoSqlMigrationPrefix, url, user, validateMigrationNaming, validateOnMigrate, workingDirectory
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.flywaydb.gradle.task.AbstractFlywayTask
getPluginConfiguration, runTask
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString, usesService
-
Constructor Details
-
FlywayRepairTask
public FlywayRepairTask()
-
-
Method Details
-
run
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.
-