MigSharp 2.3.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MigSharp --version 2.3.4                
NuGet\Install-Package MigSharp -Version 2.3.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MigSharp" Version="2.3.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MigSharp --version 2.3.4                
#r "nuget: MigSharp, 2.3.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MigSharp as a Cake Addin
#addin nuget:?package=MigSharp&version=2.3.4

// Install MigSharp as a Cake Tool
#tool nuget:?package=MigSharp&version=2.3.4                

Write database migrations and/or schema modifications in your favorite .NET language and let Mig# generate the platform-dependent SQL code and update your schema. Features: fluent interface, automatic versioning, multi-module support, scripting to SQL files, validation framework for portability issues, suport for SQL Server, Oracle, Teradata, SQLite, legacy integration

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MigSharp:

Package Downloads
CMS.Domain

Description

CMS.Framework

Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 37,621 1/16/2018
3.2.1 3,464 7/7/2017
3.2.0 4,958 11/16/2016
3.1.3 1,412 10/23/2016
3.1.2 1,183 10/23/2016
3.1.1 1,467 8/23/2016
3.1.0 3,017 7/26/2016
3.0.0 7,209 12/17/2015
2.3.4 1,767 11/20/2015

2.3.4
BUG FIXES:
 - correctly script default values of all types (#61)
2.3.3
- ships correct assembly versions in NuGet
2.3.2
- added support for MySql (thanks to mediocreguy)
BUG FIXES:
 - fixed scripting of Unicode literals
2.3.1
- added support for row-version columns (new .WithRowVersionColumn(columnName) method)
- added support for ON DELETE CASCADE (new .CascadeOnDelete() method on foreign keys) (thanks to Marko Binic)
- new console application that generates a migration from an existing SQL Server database schema (Generate.exe)
BUG FIXES:
 - removed experimental MySql from the default list of supported providers
2.3.0
- new DropIfExists method on tables
- DateTime2 columns respects OfSize parameter (#50)
- added scripting support for DateTime2
- Scripting a DateTime or DateTime2 value includes 3 digits of miliseconds according to ISO 8601 with a dot as a decimal mark
- Error log contains exact information about the failed migration.
BREAKING CHANGES:
 - Change of DataType class: size and precision are now nullable:
   -> the 'scale' parameter of the 'OfSize' methods is nullable
   -> a size equal to 0 means 'is set to zero' now
   -> validation messages might contain the string 'null' (where they had '0')
BUG FIXES:
 - SQL Server Providers: use 'tinyint' for DbType.Byte (instead of 'smallint')
2.2.0
- Added possibility to execute a migration without versioning it (useful for dynamical schema changes)
2.1.0
- Added support for custom timestamp formats (see Wiki on how to use this feature) (thanks to richardprior)
- Added support for custom DB connections which is needed for SQLite in-memory databases (thanks to jvandertil)
- Added support for SQL Server 2012 (2.0.0 was already compatible but we've added an official provider now)
2.0.0
- Added support for SQL Server CE 3.5 (thanks to balistof)
- Duplicate migration exports are detected before actual migration execution
- API:
- IMigrationBatch now lists:
- migrations scheduled for execution
- migrations executed server-side but unknown to the application (used to detect if an application is out-of-date)
- Removed Migrator.IsUpToDate as it is ambiguous and incurs an extra round-trip to the database (use FetchMigrations instead)
- IVersioning: implementors need to return all executed migrations instead of answering Contains(...)
- IVersioning and MigrationEventArgs: use the new IScheduledMigrationMetadata interface which contains the direction
- BUG FIXES:
 - SQL Server 2005/2008:
   - before dropping a column, drop its default constraint (if exists) (thanks to rmotyka)
   - SQL Server CE 4:
   - allow GUIDs to be used as primary keys (thanks to lestermat)
 - Teradata:
   - stop creating *_0 tables when adding foreign keys
1.1.0
- Added support for SQLite (without foreign keys)
- Added support for SQL scripting: instead of executing migrations against a database, they can be scripted into files
- Added command-line interface: Migrate.exe, a console application
- Added support for retrieving migrations from multiple assemblies (thanks to FlorianHoornaar)
- Extended/completed list of allowed primary key data types for all providers
- Providers define themselves which data-types can be used for identity columns
- this allows to use decimals without scale for SQL Server, Oracle, and Teradata
- Extended API to allow renaming of primary keys
- Removed .AsIdentity() option when adding columns (was not implemented consistently and was missing integration testing and constitues a super special-case which is hard to implement consistently for all platforms)
- IProvider: added the DropDefault method which replaces the AddedColumn.DropThereafter and gives the providers more flexibility to report what they support and what not
- Teradata: raise validation error on adding/dropping primary keys (Teradata does not support that)
1.0.2
- BUG FIXES:
 - SQL Server 2005/2008:
   - rename default constraint along with the column (fixes the case when adding a new column with a default value which has the same name of a previously renamed column with a default value)
 - Oracle:
   - rename identity sequence and trigger along with the table
 - Teradata:
   - escape new name when renaming a table
   - removed MINVALUE and MAXVALUE for identity columns which is not needed and caused unexpected errors
1.0.1
- BUG FIXES:
 - Oracle: multiple Mig# instances can be maintained side-by-side on the same database
 - SQL Tracing: do not throw if the emitted SQL contains curly brackets
1.0.0
- Initial release

Note: Mig# uses "Semantic Versioning" http://semver.org/ (by Tom Preston-Werner)