Flask Migrate allows to manage SQLAlchemy database migrations for Flask applications using Alembic. One of the common user-scenaio is that you have an existing database being used in the Flask Application. If you would like to integrate Flask-Migrate, this post will help you to start with the setup. Other user-scenario that I have seen is that once you integrate Flask-Migrate, some times people accidentally delete the migrations folder or would like to reset the migrations, the same steps can be followed. Let's get started. First step is to make sure that the flask-migrate is installed and included in your flask project. from flask_sqlalchemy import SQLAlchemy from flask import Flask, render_template, redirect, url_for from flask_migrate import Migrate import os basedir = os.path.abspath(os.path.dirname( __file__ )) app = Flask( __name__ ) app.config[ 'SQLALCHEMY_DATABASE_URI' ] = os.environ.get( 'DATABASE_URL' ) or \ 'sqlite:///' + os.path.join