开发者

Ways to manage DB migrations with SQLAlchemy? [closed]

开发者 https://www.devze.com 2023-02-16 09:57 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消