[sqlalchemy] Why not seeing ondelete='xxx', and onupdate='xxx' in alembic migration script?

2012-12-05 Thread junepeach
I defined several tables in my module file: mymodule.py. For example I have table T1 and T2 defined: class T1(Base): __tablename__ = 't1' id = Column(Integer, primary_key = True) name = Column(String(15)) class T2(Base): __tablename__ = 't2' id = Column(Integer, primary_key =

Re: [sqlalchemy] Why not seeing ondelete='xxx', and onupdate='xxx' in alembic migration script?

2012-12-05 Thread Michael Bayer
On Dec 5, 2012, at 2:56 PM, junepeach wrote: I defined several tables in my module file: mymodule.py. For example I have table T1 and T2 defined: class T1(Base): __tablename__ = 't1' id = Column(Integer, primary_key = True) name = Column(String(15)) class T2(Base):

Re: [sqlalchemy] Why not seeing ondelete='xxx', and onupdate='xxx' in alembic migration script?

2012-12-05 Thread Eric Ongerth
Thank you very much for that resolution! I use these a lot. On Wednesday, December 5, 2012 12:37:54 PM UTC-8, Michael Bayer wrote: On Dec 5, 2012, at 2:56 PM, junepeach wrote: I defined several tables in my module file: mymodule.py. For example I have table T1 and T2 defined: class