The Tarantino Project - Database Change Management

The Tarantino Project is a very simple to use database change management system that uses an application or NAnt deployment tasks to do so. I've been checking out Tarantino for about a week and I just started using it today and wanted to share my experience with how easy it is to use.

To use Tarantino, all you have to do is follow a couple of conventions.

You create a folder for a particular database. Then you have two folders under that, Create and Update.

dbFolder

You name each sql task you want it to do in ORDER, starting with 0001-name.sql.

updatefolder

Then you set up a task that points to that top level folder:

<manageSqlDatabase scriptDirectory="db" action="Update" server="(local)" integratedAuthentication="true" database="test" />

The actions you can do include Create, Update, Drop, and Rebuild.

Push the values for these task properties into their own properties or external to the NAnt file.

You also need to drop the required files in your NAnt directory (these are a little different than the documentation, consider this the updated list).

  • log4net.dll
  • Microsoft.SqlServer.BatchParser.dll
  • Microsoft.SqlServer.ConnectionInfo.dll
  • Microsoft.SqlServer.Replication.dll
  • Microsoft.SqlServer.Smo.dll
  • Nhibernate.dll
  • StructureMap.dll
  • Tarantino.Core.dll
  • Tarantino.DatabaseManager.Tasks.dll
  • Tarantino.Infrastructure.dll

There is a more detailed explanation here: http://code.google.com/p/tarantino/wiki/DatabaseChangeManagement

This article is part of the GWB Archives. Original Author: Robz / Fervent Coder

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.