You can create migrations for your database using
First, you need to initialize the migrations using the following command in your main project directory, after you have setup your database:
flask db init
Now you can create a new migration:
flask db migrate -m "<migration name>"
To update the database to the new version:
flask db upgrade