On 23 March 2012 02:23, Alex Norcliffe <[email protected]> wrote: > I'd like to write a test that confirms a schema change to an existing > database succeeds (namely, adding some indexes to existing tables and a new > table) after running SchemaUpdate.
My experience is that adding indexes to existing tables by modifying the in-memory NHibernate config, then running SchemaUpdate does not result in any SQL DDL being run to add the indexes to the database. For new tables, yes, DDL is run to create the table and add indexes. It may be different if the config is set with Fluent Hibernate or ActiveRecord or modified NHibernate config files, but I don't know; I suspect that would also not add new indexes for existing tables. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
