From 38208866b93fd1c512dc50f0648c3b1c1536d608 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 19 Dec 2024 20:01:18 -0800 Subject: [PATCH] fix --- backend/open_webui/internal/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/internal/db.py b/backend/open_webui/internal/db.py index ba078822e..5f19e695d 100644 --- a/backend/open_webui/internal/db.py +++ b/backend/open_webui/internal/db.py @@ -54,7 +54,7 @@ def handle_peewee_migration(DATABASE_URL): try: # Replace the postgresql:// with postgres:// to handle the peewee migration db = register_connection(DATABASE_URL.replace("postgresql://", "postgres://")) - migrate_dir = OPEN_WEBUI_DIR / "apps" / "webui" / "internal" / "migrations" + migrate_dir = OPEN_WEBUI_DIR / "internal" / "migrations" router = Router(db, logger=log, migrate_dir=migrate_dir) router.run() db.close()