I deployed my flask app into heroku. When I run this command I get an error.
heroku run python manage.py deploy
This is the error message:
raise util.CommandError('Only a single head is supported. The ' alembic.util.CommandError: Only a single head is supported. The script directory has multiple heads (due to branching), which must be resolved by manually editing the revision files to form a linear sequence. Run alembic branches to see the divergence(s).
Ao I googled it,then i got this:
this happens when you go back to a revision that is not the last and then create a new migration. Now you have two branches, which Alembic cannot handle.Look at how the migration files are chained together through migration ids, you need to create a linear chain to collapse the branches.
But I'm still confused about how to solve that. I think the problem is caused by git branches. (I tried to merge two branches, but didn't work?)