you can alter how MetaData things are built up using the after_parent_attach event:
http://docs.sqlalchemy.org/en/rel_0_9/core/events.html?highlight=after_parent_attach#sqlalchemy.events.DDLEvents.after_parent_attach apply the event to ForeignKey and set use_alter=True for all of them as they come in. On Aug 26, 2014, at 10:03 PM, Bala Ramakrishnan <bal...@gmail.com> wrote: > To generate an 'alter table ' statement for foreign key constraints, we have > to specify use_alter=True for the ForeignKey class. > > Is there a global setting or via setting up some kind of event call back to > generate the alter statements by default for all foreign key constraints > instead of setting them for each relationship? > > I am trying to find a comparable setting with Java Hibernate. > > -Bala > > -- > 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 http://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. -- 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 http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.