On Tue, 24 Aug 2004 10:57:52 -0700 (PDT), Roger Haase wrote:
> The current CVS head for Middlekit now generates and expects the
> serialNum field for all SQL tables to be called "serialNum" where
> before the serialNum field for each table would be called
> <tablename> + "Id".
>
> This breaks a lot of existing code as all SQL tables created with
> prior versions will not work.

Not to worry. As the author of MiddleKit I also have older projects that I don't want 
broken (and don't feel like upgrading). Consequently, when I make changes like this, I 
always add an option to get the old behavior. In this case, the setting is:

{
        'SQLSerialColumnName': '%(className)sId',
}

Which goes in Settings.config inside your Foo.mkmodel.

Also you may need this one if you don't want object references split into 2 columns 
(class id and obj id):
        'UseBigIntObjRefColumns': 1,


Cheers,
-Chuck




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to