Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

MigrationRunningMode

Fluent Migrator execution mode

Union Cases

Union CaseDescription
Execute(connection)
Signature: DatabaseConnection

Execute migrations on the target database

ExecuteAndScript(...)
Signature: DatabaseConnection * string

Execute migrations on the target database and script SQL to the output file

Preview(connection)
Signature: DatabaseConnection

Execute migrations in preview-only mode

Script(...)
Signature: int64 * string * DatabaseProvider

Create migration script