MAJOR REFACTOR P3

This commit is contained in:
2025-09-05 20:44:41 +02:00
parent 12af4e7bbe
commit a2b13f3d32
13 changed files with 99 additions and 3 deletions

View File

@@ -9,7 +9,8 @@ __all__ = ["app"]
db = SQLAlchemy(app=app)
# Set up migration
migration = Migrate(app=app, db=db)
migrations_dir = Path(__file__).parent / "migrations"
migration = Migrate(app=app, db=db, directory=str(migrations_dir))
# Init and upgrade
with app.app_context():