Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.92 KB

index.md

File metadata and controls

39 lines (24 loc) · 1.92 KB

Fluent migrations framework for .NET (Apache 2.0 License)

Fluent Migrator is a migration framework for .NET much like Ruby on Rails Migrations. Migrations are a structured way to alter your database schema and are an alternative to creating lots of sql scripts that have to be run manually by every developer involved. Migrations solve the problem of evolving a database schema for multiple databases (for example, the developer's local database, the test database and the production database). Database schema changes are described in classes written in C# that can be checked into a version control system.

How to use it

  1. Database-agnostic migrations: Quickstart
  2. Database-specific migrations:
    1. SQL Server Extensions
    2. Postgres Extensions
  3. Frequently Asked Questions
  4. FluentMigrator Comparison to Entity Framework Core Migrations

What does it look like?

This is an example of a database-agnostic migration:

[!code-cs20180430121800_AddLogTable.cs]

Current Release

Upgrade guides

  • 3.1 to 3.2
  • 3.0 to 3.1
  • 2.x to 3.0

Supported databases

For the current release these are the supported databases:

[!includeSupported databases]

More Information on FluentMigrator