A set of aliases for Cake to run Flyway commands
Branch | Status |
---|---|
Master | |
Develop |
Branch | codecov |
---|---|
Master | |
Develop |
Build the Cake.Flyway.dll then use as follows
#addin "Cake.Flyway"
Task("Flyway")
.Does(() => {
// new Flyway configuration
var configuration = new FlywayConfiguration {
Url = "jdbc:sqlserver:////<host>:<port>;databaseName=<database>",
User = "<user>",
Password = "<password>"
}
// flyway info
FlywayInfo(new FlywayInfoSettings {
Configuration = configuration;
});
// flyway migrate
FlywayMigrate(new FlywayMigrateSettings {
Configuration = configuration;
});
});
Cake.Flyway currently supports the following commands of Flyway:
flyway migrate
flyway clean
flaway info
flaway validate
flyway baseline
flaway repair
The Flyway Pro features are currently not supported.