initialize database tables in create_app function
All checks were successful
Build and Push Image / build-and-push (push) Successful in 15s
All checks were successful
Build and Push Image / build-and-push (push) Successful in 15s
This commit is contained in:
parent
b56e866071
commit
bdb61fe1b7
1 changed files with 4 additions and 0 deletions
|
|
@ -24,4 +24,8 @@ def create_app():
|
|||
from app.routes import bp as main_bp
|
||||
app.register_blueprint(main_bp)
|
||||
|
||||
# Initialize database tables
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
return app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue