Commit d8c7fa90 authored by Alex's avatar Alex
Browse files

create if db specified

parent a8961d42
......@@ -13,7 +13,8 @@ db.init_app(app)
# TODO Find a workaround for migrations/db.create_all()
with app.app_context():
from models.entity import Entity
db.create_all()
if app.config["SQLALCHEMY_DATABASE_URI"]:
db.create_all()
# Serve all static assets for the frontend
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment