If it involves larger structural changes you should outline them in text first. In any case you need to open at least one issue in JIRA, write the code with tests and submit pull requests. Try to structure the code in multiple logical commits for easier review.
It's also good to consider if it can be done backwards compatible.
/Oskar
I've been playing around with writing a migration framework akin to EF6 Migrations as a separate library and I've run into a number of places sql flavors aren't adequately reflected in Dialect. Specifically I'm running into issues around dropping & altering columns where the support and syntax varies widely. What's the process for me proposing a change, getting tests up to everyone's satisfaction and submitting a pull request?
--
---
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-development+unsub...@googlegroups.com.
Did you had a look at Configuration.GenerateSchemaUpdateScript method?
Amro
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.
--
---
You received this message because you are subscribed to a topic in the Google Groups "nhibernate-development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nhibernate-development/ACTD62W3eo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nhibernate-develo...@googlegroups.com.
Ok, pull request is submitted.
I'd want to talk the architecture through a lot more before proposing that. If people are interested in a NHibernate branded project and are willing to have some discussion of how it works, sure.
--
I think that you are trying from the wrong end.
IMO nhibernate should only provide info about what is missed, needs to be added, or changed. And other tool should consume this info and generate migrations in DSL for particular migrator (fluent-migrator or other)
Best Regards,
Alexander
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to nhibernate-development+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-development+unsub...@googlegroups.com.
I doubt it. Afaik, sql (or at least the mssqlserver dialect) doesn't support renaming columns in the alter syntax. That an IDdlOperation which generates the correct ddl shouldn't be hard to whip up.
You add support for altering columns, but it is possible to rename a column with ALTER? I saw your migration framework (Alpha) cannot rename a column.
--
---
You received this message because you are subscribed to a topic in the Google Groups "nhibernate-development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nhibernate-development/ACTD62W3eo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nhibernate-develo...@googlegroups.com.
surface.Alter.Table("Test").RenameColumn("Example", "BetterExample");
I doubt it. Afaik, sql (or at least the mssqlserver dialect) doesn't support renaming columns in the alter syntax. That an IDdlOperation which generates the correct ddl shouldn't be hard to whip up.
On Nov 13, 2014 7:03 AM, "Jan Schubert" wrote:
You add support for altering columns, but it is possible to rename a column with ALTER? I saw your migration framework (Alpha) cannot rename a column.--
---
You received this message because you are subscribed to a topic in the Google Groups "nhibernate-development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nhibernate-development/ACTD62W3eo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nhibernate-development+unsub...@googlegroups.com.
Firebird:
Alter <table_name> Alter column <old_column_Name> to <New_column_Name>
--
---
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-development+unsub...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhibernate-develo...@googlegroups.com.