6

All I want is to have a workflow somewhat similar to:

  1. Add django_evolution to the INSTALLED_APPS for your project
  2. Run ./manage.py syncdb
  3. Make modifications to the model files in your project
  4. Run ./manage.py evolve --hint --execute

Which is super simple and even though it doesn't support advanced features (like multiple databases) it does know how to add/remove columns which is a common use case.

sqlalchemy-migrate has an insanely complex workflow in comparison and both tutorials (1, 2) referenced by the docs are either outdated or irrelevant.

ubershmekel
  • 11,864
  • 10
  • 72
  • 89
  • I didn't know django-evolution. How does it compare to django-south ? – madjar Dec 05 '11 at 08:46
  • 1
    At the time I used django_evolution (south didn't yet exist) and I was very pleased. For specifics see http://south.aeracode.org/wiki/Alternatives – ubershmekel Dec 05 '11 at 09:14

2 Answers2

2

The creator of SQLAlchemy recently started working on Alembic. While it's still young (version 0.1), it may suits your needs.

madjar
  • 12,691
  • 2
  • 44
  • 52
2

I think you already tried your hand on DJango :). These are the functionality right now not available with current SQLAlchemy. Suggested by @madjar you can use development version of Alembic or you can use sqlalchemy-migrate. Relevant post is already in stack overflow.

Community
  • 1
  • 1
Nilesh
  • 20,521
  • 16
  • 92
  • 148