4Catalyzer / alembic-autogen-check

Command to check that alembic migrations are in sync with SQLAlchemy models
MIT License
23 stars 6 forks source link

alembic-autogen-check

Latest version Travis-CI

Command to check that alembic migrations are in sync with SQLAlchemy models.

screenshot

Install

pip install alembic-autogen-check

Usage

PYTHONPATH=. alembic-autogen-check

This assumes that an alembic.ini file exists in the current working directory. You can explicitly pass a config file:

PYTHONPATH=. alembic-autogen-check --config path/to/alembic.ini