Example of alembic migrations Important Run export PYTHONPATH=$PYTHONPATH:$(pwd) inside the root folder so alembic will know where the models.py file is.