Thanks for that. Have you ever used it?
I found the DLL with the migration stuff in it but I can't find the source:
http://svn.castleproject.org/svn/castle ... grator.dll
By looking through the assembly I can see it isn't implemented on NHibernate because it has its own providers for MySQL, PostgreSQL and SQL Server. I assume that the NHibernate classes do not provided enough features to support migrations.
The version that's on SVN is 0.1.0.38948 which means that this is probably far from being finished. Do you know what state it is at because I was reading their site yesterday and didn't see a mention of the migrator.
I can see all the log messages it will print are in another language other than English so that would be a bit of a pain.
The TransformationProvider provides these methods which I think miss the point of making it database agnostic. Because for example dates are handled differently in different databases.
protected int ExecuteNonQuery(string sql);
protected IDataReader ExecuteQuery(string sql);
protected object ExecuteScalar(string sql);
I proposed other methods; example to update a column's value. You obviously would need to to build quite a few of these to provide you with all the things you could do in SQL.
I'm still considering building my own because I'd like to make it use the NHibernate configuration and use NHibernate's core. Do you know what licence that code would be under? Because some of it may be useful to reuse.
What is your personal opinion of Castle Project's Migrator? Do you think I am silly making one when this exists?
Thanks for your time, Jono
Edit: I found out the license and info about maintainance:
- "The author donates his/her work and releases it under a license compatible with the Apache Software License. (In other words, no GPL or LGPL license, please.)"
- "It's not officialy supported and/or maintained by the Castle team."