Skip to content

NVR with realtime local object detection for IP cameras

Do not migrate db to new config path (#14123)

gtsiam3c015bf8228f
diff --git a/frigate/app.py b/frigate/app.py
index a04c4737ed..ca419e045d 100644
--- a/frigate/app.py
+++ b/frigate/app.py
@@ -35,7 +35,6 @@ from frigate.const import (
CACHE_DIR,
CLIPS_DIR,
CONFIG_DIR,
- DEFAULT_DB_PATH,
EXPORT_DIR,
MODEL_CACHE_DIR,
RECORD_DIR,
@@ -151,13 +150,6 @@ class FrigateApp:
except PermissionError:
logger.error("Unable to write to /config to save DB state")
- # Migrate DB location
- old_db_path = DEFAULT_DB_PATH
- if not os.path.isfile(self.config.database.path) and os.path.isfile(
- old_db_path
- ):
- os.rename(old_db_path, self.config.database.path)
-
# Migrate DB schema
migrate_db = SqliteExtDatabase(self.config.database.path)