FlywayRunnerAliases.

FlywayRepair(ICakeContext, FlywayRepairSettings) Method

Summary

Execute 'flyway repair' with options
Assembly
Cake.Flyway.dll
Namespace
Cake.Flyway
Containing Type
FlywayRunnerAliases

Syntax

public static void FlywayRepair(this ICakeContext context, FlywayRepairSettings settings = null)

Examples

Run 'flyway repair'

Task("Flyway-Repair)
    .Does(() =>
    {
        FlywayRepair();
    });

Run 'flyway repair'

Task("Flyway-Repair)
    .Does(() =>
    {
        FlywayRepair(new FlywayRepairSettings
            {
                Configuration = new FlywayConfiguration
                {
                    SqlMigrationPrefix = "M_"
                }
            }
        );
    });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext
settings FlywayRepairSettings

Return Value

Type Description
void