Migrations patch

May 28th, 2008

As promised, here it is. Some comments about the changes

- Had to change the way tables names were used on the CREATE/DROP/ALTER statements, removed quotes to allow you to define the schemas. I use Core.Comment, Tracker.Team as lot.
- Made Connection available to the migration class, as you would need it to perform sql operations using same transaction
- Introduced the SchemaBuilder
- Added support for unique keys (still need to support Defaults, though)

For donjon, I’ve also created a Castle ActiveRecord integration, so the migration reuse the connection/transaction support. It’s not nice as I would like it to be as it involves creating a SessionScope for the migration run, but works well. I’ll try to make that available in a near future.

Categories: General, OSS | Top Of Page | 3 Comments » |

3 Responses to “Migrations patch”

Alessandro Cavalieri Says:

Sorry if my question seems to be obvious for most, but how can I use the text file referenced your link? what is its format?
I would like to use migration with your enhancement.

Thanks in advance.

hammett Says:

No need, the patch was applied, just update your copy.

Zen and the art of Castle maintenance » Blog Archive » Machine.Migrations is freaking sweet Says:

[...] patch is here, but nevertheless it was applied [...]

Leave a Reply