Timothy Jaeryang Baek 4 ماه پیش
والد
کامیت
38208866b9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      backend/open_webui/internal/db.py

+ 1 - 1
backend/open_webui/internal/db.py

@@ -54,7 +54,7 @@ def handle_peewee_migration(DATABASE_URL):
     try:
     try:
         # Replace the postgresql:// with postgres:// to handle the peewee migration
         # Replace the postgresql:// with postgres:// to handle the peewee migration
         db = register_connection(DATABASE_URL.replace("postgresql://", "postgres://"))
         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 = Router(db, logger=log, migrate_dir=migrate_dir)
         router.run()
         router.run()
         db.close()
         db.close()