aboutsummaryrefslogtreecommitdiff
path: root/app/__init__.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-10 15:57:45 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-10 15:57:45 +0530
commit726b27a41c41b76d3ded3dcf350bc7bfdeeeecf6 (patch)
treecf21979540dac41a772e868cecd7f367fadf411c /app/__init__.py
parent9825a728fc1cb739916ecc9d7c4294107891888f (diff)
added migration to app
Diffstat (limited to 'app/__init__.py')
-rw-r--r--app/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/__init__.py b/app/__init__.py
index fcaddc9..da9ceff 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -4,6 +4,7 @@ from flask import Flask
from flask_bcrypt import Bcrypt
from flask.cli import AppGroup
from flask_sqlalchemy import SQLAlchemy
+from flask_migrate import Migrate
import flask_login
from flask_mailman import Mail
from sentry_sdk.integrations.flask import FlaskIntegration
@@ -22,6 +23,7 @@ app.config.from_object("app.config")
bcrypt = Bcrypt(app)
db = SQLAlchemy(app)
+migrate = Migrate(app, db)
login_manager = flask_login.LoginManager()
oauth = OAuth(app)
mail = Mail(app)