Thanks, Mike!

My implementation uses the single table inheritance 
model and I would like to (i.e. *need to*) keep the id the same.

Talking about the example in the documentation, do I understand you 
correctly that changing from Manager to Engineer is as simple as updating 
the type field?


On Thursday, August 10, 2017 at 9:18:50 AM UTC+10, Mike Bayer wrote:
> On Wed, Aug 9, 2017 at 6:53 PM,  < <javascript:>> 
> wrote: 
> > Hi, 
> > 
> > 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? 
> UPDATE the discriminator name, perform INSERT / DELETE of joined 
> inheritance tables as needed.... 
> > Thank you! 
> > Jens 

SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See for a full description.
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to