Hi,

I am doing multi-table inheritance (see example below) and I need to
control the name of the column in the child tables (in the example
below, I want the primary/foreign key in PersistentImage to be called
'id' rather than 'image_id'). Is there any way I can do that?

class Image(Entity):
        using_options(tablename='Images', inheritance='multi')

class PersistentImage(Image):
        using_options(tablename='PersistentImages', inheritance='multi')
        foo1 = Field(Integer)

class TransientImage(Image):
        using_options(tablename='TransientImages', inheritance='multi')
        foo2 = Field(Integer)

Thanks,
Tomer


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to