flask sqlahemy undo flask mdb migrate before upgrasde code example
Example 1: flask db migrate
flask db init
flask db migrate
flask db upgrade
Example 2: flask migrate
$ flask db migrate -m "Initial migration."
flask db init
flask db migrate
flask db upgrade
$ flask db migrate -m "Initial migration."