This commit is contained in:
2025-05-22 20:39:04 +02:00
parent 5d0209f7a4
commit d450994857
2 changed files with 18 additions and 2 deletions

12
init_db.py Normal file
View File

@@ -0,0 +1,12 @@
from app import app, db
from flask_migrate import upgrade
def init_db():
with app.app_context():
# Create all tables
db.create_all()
# Run any pending migrations
upgrade()
if __name__ == '__main__':
init_db()