mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-08 10:08:24 -06:00
Attempt to fix database not creating tables
This commit is contained in:
4
app.py
4
app.py
@@ -113,6 +113,10 @@ def create_app():
|
|||||||
|
|
||||||
@app.cli.command("create_all")
|
@app.cli.command("create_all")
|
||||||
def db_create_all() -> None:
|
def db_create_all() -> None:
|
||||||
|
with app.app_context():
|
||||||
|
db.create_all(app=app)
|
||||||
|
|
||||||
|
with app.app_context():
|
||||||
db.create_all(app=app)
|
db.create_all(app=app)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|||||||
Reference in New Issue
Block a user