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?
Thank you! Jens 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 > <javascript:>. > > To unsubscribe from this group, send email to > > sqlalchemy+...@googlegroups.com <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/sqlalchemy?hl=en. > > > > > > -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ 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 "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.