We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2fa2e1 commit ae60d0aCopy full SHA for ae60d0a
app/__init__.py
@@ -9,6 +9,7 @@
9
# Import Flask
10
from flask import Flask
11
from flask_sqlalchemy import SQLAlchemy
12
+from flask_migrate import Migrate
13
14
# Inject Flask magic
15
app = Flask(__name__)
@@ -19,5 +20,8 @@
19
20
# Construct the DB Object (SQLAlchemy interface)
21
db = SQLAlchemy (app)
22
23
+# Enabel migration for our application
24
+Migrate(app, db)
25
+
26
# Import routing to render the pages
27
from app import views, models
0 commit comments