migrate db with flask.cli package code example
Example 1: flask db migrate
flask db init
flask db migrate
flask db upgrade
Example 2: flask migrate install
pip install Flask-Migrate
flask db init
flask db migrate
flask db upgrade
pip install Flask-Migrate