It's been a long time since I looked at that particular code, so I may have misspoke. Having said that, if it's currently disabled in the driver I'm not sure why and I would want to review it before saying that it works properly in all cases.
Derek On Sun, Nov 29, 2009 at 1:11 PM, Julian Backes <[email protected]>wrote: > Hi Lift Community, > > this is a reply to my own question: > > I'm trying to get my first scala/lift app working and I have a > > problem: Schemifier.schemify(...) creates everything, i.e. tables, > > primary keys, indices but it does not create the foreign key > > constraints. > > After hours of compiling and testing, I stumbled across some messages > here on the mailing lists which discussed the same problem (I have no > idea why I haven't seen them before). > > In one message, Derek said > > At this time we don't support it, but feel free to file an issue. > > I'll have time at some point to work on it, and I think that it would > > be useful to generate. > > What does he mean by "we don't support it"? I've seen the code for > generating foreign key constraints in Schemifier.scala > I just needed to set supportsForeignKeys_? in the postgresql driver > class to true and... it works now. The generated foreign key constraints > are perfectly ok. > > Is there a reason that this code is not used? > > Julian > > -- > > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<liftweb%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en.
