Skip to main content

Command Palette

Search for a command to run...

Missing initial migration

Updated
1 min read
Missing initial migration

Using the Flask-Migrate extension you can create database migrations for your application.

Flask application’s typically auto-create db tables on start

So running flask db upgrade you’ll get:

INFO [alembic.env] No changes in schema detected.

To create the initial migration, override the applications existing database with a temporary memory-based one

DATABASE_URL=sqlite:/// flask db migrate

Happy hackin’!

References