Ways to manage DB migrations with SQLAlchemy? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
开发者_StackOverflow中文版 Improve this questionI've looked at sqlalchemy-migrate, but it just seems like a lot of work and I haven't been able to find any useful examples.
Anyone care to share how they handle this?
Check out new project Alembic: http://readthedocs.org/docs/alembic/en/latest/index.html
I don't have any personal experience with sqlalchemy-migrate
, but here's a tutorial:
http://caneypuggies.alwaysreformed.com/wiki/DevelopingWithMigrations
If you use the scripts mentioned there, you can create migrations like this:
./new_migration.sh "Describe the new migration here"
I do all my migrations with South: http://south.aeracode.org/ Note that it depends on the Django framework though.
精彩评论