tags:

views:

177

answers:

1

I want to add a field to an existing mapped class, how would I update the sql table automatically. Does sqlalchemy provide a method to update the database with a new column, if a field is added to the class.

+2  A: 

SQLAlchemy itself doesn't support automatic updates of schema, but there is a third party SQLAlchemy Migrate tool to automate migrations. Look though "Database schema versioning" chapter to see how it works.

Denis Otkidach
hey thanks, thought as much ...
jagguli