mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-20 23:14:03 +00:00
move alembic_db inside app folder (#10163)
This commit is contained in:
@@ -26,9 +26,9 @@ SESSION: Optional[async_sessionmaker] = None
|
||||
|
||||
def _root_paths():
|
||||
"""Resolve alembic.ini and migrations script folder."""
|
||||
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
||||
config_path = os.path.abspath(os.path.join(root_path, "alembic.ini"))
|
||||
scripts_path = os.path.abspath(os.path.join(root_path, "alembic_db"))
|
||||
root_path = os.path.abspath(os.path.dirname(__file__))
|
||||
config_path = os.path.abspath(os.path.join(root_path, "../../alembic.ini"))
|
||||
scripts_path = os.path.abspath(os.path.join(root_path, "../alembic_db"))
|
||||
return config_path, scripts_path
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user