I\'ve been using Flask-Migrate (Alembic) for updating my database. I updated my models.py
file however I made an error. I ran a migration and went to upgrade the da
I feel like the accepted answer is a little over-complicated. I had this same issue and the way that I solved it was to simply delete the migration that contained the coding errors. You don't need it anyways since, again, it was coded incorrectly. Find the latest migration in the migrations/versions
folder, delete it, then run your migration again and upgrade. You don't need to delete the data in your database just to migrate it.