Obsolete
Details
Details
Assignee
Patrick Earl
Patrick EarlReporter
Matthew Gabeler-Lee
Matthew Gabeler-LeeComponents
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created May 14, 2010 at 11:25 AM
Updated May 9, 2011 at 9:57 AM
Resolved May 9, 2011 at 9:57 AM
Since newer versions of SQLite support foreign key enforcement, it would be nice if the schema export functionality in NHibernate could generate foreign key clauses when working with the SQLite dialect.
Right now what's stopping this from being a trivial change to the SQLiteDialect class is that NHibernate only creates foreign keys with an ALTER TABLE statement, and SQLite doesn't support that. If NHibernate supported including the foreign keys in the CREATE TABLE statement, then SQLite's foreign key support could be used.