1 / 7

Fluent Migrator

Fluent Migrator. Chris Farrell Quick Solutions. What is it?. Sean Chambers, Nate Kohari , Justin Etheredge .Net Schema Migration Tool Fluent Interface Write.Schema.Transformations.With.Net Supports: SQL Server, MySQL , PostGres , Oracle, Sqlite,Jet. Why.

elisa
Télécharger la présentation

Fluent Migrator

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fluent Migrator Chris Farrell Quick Solutions

  2. What is it? • Sean Chambers, Nate Kohari, Justin Etheredge • .Net Schema Migration Tool • Fluent Interface • Write.Schema.Transformations.With.Net • Supports: • SQL Server, MySQL, PostGres, Oracle, Sqlite,Jet

  3. Why • Devs sharing the same DB == Headaches • Product Updates from n-th Version to Current • Apply Dev updates to Production • Testing Legacy Versions • Create Testing Databases • Multi-Targeted(create SQL Lite, SQL, Etc)

  4. What Can FM do? • Update any ? Version to current version • Create an update SQL Script • Create a specific version of the database • Rollback migration(s) • Execute SQL Scripts

  5. Syntax • libs\FluentMigrator\Migrate --verbose=true --db=sqlserver2008 -c="Data Source=localhost;Initial Catalog=Fanug;Integrated Security=SSPI" --timeout=1500 -a="src\FluentMigratorDemo\bin\Debug\FluentMigratorDemo.dll" %1 %2 %3 %4 • Export: -output -outputFilename="test.sql“ • Migrate Up: -t=migrate:up • Rollback: -t=rollback %1 • Rollback All: -t=rollback:all • Rollback to Nth Version: -t=rollback:toversion --version=%1

  6. Links • Official Repo • https://github.com/schambers/fluentmigrator • .Net 3.5, 32 bit SQLite • My Repo • https://github.com/chrispfarrell/fluentmigrator • Jeffs Repo • https://github.com/walkercoderanger

  7. DEMO • Create Table • Alter Table • Execute SQL command • Execute SQL Script • Export SQL script • Create New DB • Create Specific Version

More Related