feat: 完善数据库备份管理与版本读取 (#6450)

This commit is contained in:
InfinityPacer
2026-08-25 16:05:45 +08:00
committed by GitHub
parent b952a3e407
commit d58c8d2b17
38 changed files with 1846 additions and 459 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ def downgrade():
db_init.prepare_database()
artifacts = sorted((tmp_path / "backups").glob("sqlite_*.db"))
artifacts = sorted((tmp_path / "backups").glob("moviepilot_*_sqlite_*.db"))
assert len(artifacts) == 1
with create_engine(f"sqlite:///{artifacts[0]}").connect() as connection:
backup_revision = connection.execute(