Drop support for old database name.

This commit is contained in:
Edward Betts 2025-11-16 05:29:54 +00:00
parent 80db4664b8
commit d25a3a6622

View file

@ -32,11 +32,7 @@ def create_app() -> Flask:
db_path = app.config.get("STATION_DB") db_path = app.config.get("STATION_DB")
if not db_path: if not db_path:
old_db = instance_dir / "alt_text_cache.db" db_path = str(instance_dir / "station_announcer.db")
new_db = instance_dir / "station_announcer.db"
if old_db.exists() and not new_db.exists():
old_db.rename(new_db)
db_path = str(new_db)
app.config["STATION_DB"] = db_path app.config["STATION_DB"] = db_path
app.immich_client = ImmichClient( app.immich_client = ImmichClient(