Skip to content

Instantly share code, notes, and snippets.

@hunt3ri
Created August 2, 2012 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunt3ri/3238669 to your computer and use it in GitHub Desktop.
Save hunt3ri/3238669 to your computer and use it in GitHub Desktop.
Nant.Builder sample migration config
<!-- Database Migration Settings - expects FluentMigrator-->
<property name="run.db.migrations" value="true" />
<!--The name of the project containing your FluentMigrator tests-->
<property name="migrations.project.name" value="Nant.Builder.Sample.Migrations" />
<!--Database type, eg sqlserver2008, sqlite -->
<property name="database.type" value="sqlite" />
<!--The connection string you for the db you want to migrate-->
<property name="connection.string" value="Data Source=C:\dev\tools\sqlite\nant-builder-sample.sqlite;Version=3;" />
<!-- Set flag to true if you wish to rollback a db migration, you need to specify a migration number also-->
<property name="rollback.db.migrations" value="false" />
<!-- The migration number you wish to rollback to - WARNING be careful you don't delete data by setting this value incorrectly-->
<property name="rollback.to.version" value="0" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment