If you are planning to use database migrations, you need to let Alembic know the current state of the database.
Presuming you’ve just started off by running
tell Alembic that you are on the latest database schema:
PYTHONPATH=. alembic -x config=config.yaml stamp head
Upgrade to latest¶
Subsequently, when the database schema changes, run the following to upgrade:
PYTHONPATH=. alembic -x config=config.yaml upgrade head