On Dec 21, 2009, at 9:05 PM, Nick Retallack wrote: > Say you've created some models in SQLAlchemy, and run create_all() to > get them into the database. Later on, you changed some of their > definitions, and you need to update the database schema to correspond > to it. How would you do this? Can you get SQLAlchemy to output the > current SQL representation of your models?
since nobody has gotten to this today, this is in the FAQ at http://www.sqlalchemy.org/trac/wiki/FAQ#HowcanIgettheCREATETABLEDROPTABLEoutputasastring . You also should look at sqlalchemy-migrate at http://code.google.com/p/sqlalchemy-migrate/ . > > -- > > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.