On Tue, Jan 12, 2010 at 16:28, Stefano Fontanelli <[email protected]> wrote: > Dear all, > the class below: > > class AdPortalAccountSetting(AccountSetting): > > max_ads_number = Field(Integer, default=0) > allowed_ad_formats = ManyToMany('AdFormat', > 'ad_portal_account_setting_allowed_ad_formats') > allowed_ad_categories = ManyToMany('AdCategory', > 'ad_portal_account_setting_allowed_ad_categories') > > [...] > > > On servers with Elixir 0.6.1 produce the following tables names: > > ad_portal_account_setting_allowed_ad_categories__ad_category > ad_portal_account_setting_allowed_ad_formats__ad_format > > while on servers with Elixir 0.7.1 produce the following tables names: > > ad_portal_account_setting_allowed_ad_categories > ad_portal_account_setting_allowed_ad_formats > > It's an unexpected behaviour as I used tablename parameter.
Well, this is to be expected, because 0.6.1 and earlier only supported tablename as a keyword argument. Any *args were silently ignored. So if you want your code to work on both versions, you should use tablename=xxx. I'm sorry about your situation but since the behavior is better on the later versions, I'm not sure what I can do for you. -- Gaëtan de Menten http://openhex.org
-- You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en.
