diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-10 15:57:45 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-06-10 15:57:45 +0530 |
commit | 726b27a41c41b76d3ded3dcf350bc7bfdeeeecf6 (patch) | |
tree | cf21979540dac41a772e868cecd7f367fadf411c | |
parent | 9825a728fc1cb739916ecc9d7c4294107891888f (diff) |
added migration to app
-rw-r--r-- | app/__init__.py | 2 |
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) |