Skip to main content

Missing initial migration

Published 1 min readMarkdown
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

About the author

  • I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae

No comments yet. Be the first to comment.