mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 11:19:58 +00:00
MAJOR REFACTOR P3
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user