python manage.py db stamp heads code example
Example: alembic.util.exc.CommandError: Target database is not up to date.
$ flask db stamp head
$ flask db migrate
$ flask db upgrade
$ flask db stamp head
$ flask db migrate
$ flask db upgrade