I came upon this thread because I've got almost the exact same question.
Several years on, though, how would I go about promoting polymorphic
objects across siblings today?
On Tuesday, February 9, 2010 at 4:09:23 AM UTC+10, Michael Bayer wrote:
> Pavel Andreev wrote:
> > Another quick question: if all I need to do is change the
> > discriminator column, that is, if I'm sure no other tables are
> > affected, is there a way to do this without manual table updates?
> > Simply assigning the attribute doesn't seem to trigger table update.
> the discriminator is hardwired to the class. so as long as thats what it
> sees its going to use that discriminator value. you'd need to change this
> over in the manual thing you're doing.
> > Pavel
> > --
> > You received this message because you are subscribed to the Google Groups
> > "sqlalchemy" group.
> > To post to this group, send email to sqlal...@googlegroups.com
> > To unsubscribe from this group, send email to
> > For more options, visit this group at
> > http://groups.google.com/group/sqlalchemy?hl=en.
The Python SQL Toolkit and Object Relational Mapper
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.