Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valencia Vargas, Carlos
helloiamcarlos
Commits
d8c7fa90
Commit
d8c7fa90
authored
Nov 04, 2021
by
Alex
Browse files
create if db specified
parent
a8961d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
app.py
View file @
d8c7fa90
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment