This commit is contained in:
Kenneth Kehl
2023-05-01 13:41:48 -07:00
parent be04edd04a
commit 0dce30bf5e
5 changed files with 6 additions and 7 deletions

View File

@@ -88,6 +88,7 @@ def _notify_db(notify_api, worker_id):
ALEMBIC_CONFIG = os.path.join(BASE_DIR, 'migrations')
config = Config(ALEMBIC_CONFIG + '/alembic.ini')
config.set_main_option("script_location", ALEMBIC_CONFIG)
with notify_api.app_context():
upgrade(config, 'head')