Skip to content

Commit

Permalink
hotfix db migration path
Browse files Browse the repository at this point in the history
  • Loading branch information
iPromKnight committed Jul 16, 2024
1 parent eee85c4 commit b67f567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/program/db/db.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from sqla_wrapper import Alembic, SQLAlchemy
from program.settings.manager import settings_manager
import os
from utils import data_dir_path

db = SQLAlchemy(settings_manager.settings.database.host)

script_location = os.getcwd() + "/data/alembic/"
script_location = data_dir_path / "alembic/"

import os
if not os.path.exists(script_location):
Expand Down

0 comments on commit b67f567

Please sign in to comment.