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.
views:
177answers:
1
+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
2010-01-21 08:48:26
hey thanks, thought as much ...
jagguli
2010-01-21 13:12:46