Database Migrations in Python with Flask with Alembic by Python Code Nemesis Code Like A Girl

Note that the application script must be set in the FLASK_APP environment variable for all the above commands to work, as required by the flask command. The db upgrade command would first run migration 945fc , followed by migration b0c1f3d3617c. First, though, we need to add the details of the staging and production databases to…
Read more