Skip to content
Snippets Groups Projects
Commit d8c7fa90 authored by Alex's avatar Alex
Browse files

create if db specified

parent a8961d42
Branches master
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment