mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
feat: 完善数据库备份管理与版本读取 (#6450)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user