Is there an SQLAlchemy django-evolution equivalent?

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

  • Add django_evolution to INSTALLED_APPS for your project.
  • To run. /manage.py syncdb
  • Make changes to model files in your project
  • To run. /manage.py evolve --hint --execute

Which is super simple and even though it does not support advanced features (e.g. multiple databases), it knows how to add / remove columns, which are a common use case.

sqlalchemy-migrate has an insanely complex workflow in comparison, and both textbooks ( 1 , 2 ), which are referenced according to documents, are either outdated or irrelevant.

+6
source share
2 answers

I think you've already tried your hand at DJango :). This is functionality that is currently unavailable with current SQLAlchemy. Offered by @madjar you can use the Alembic development version, or you can use sqlalchemy-migrate . The corresponding post is already in the stack overflow.

+2
source

The creator of SQLAlchemy recently started working on Alembic . Although he is still young (version 0.1), he can satisfy your needs.

+2
source

Source: https://habr.com/ru/post/903085/


All Articles