fix: Foreign Key Violations During Backup Restore (#2986)

* added more test data

* added missing pytest id

* add fk validation to backup restore

* removed bad type imports

* actually apply the invalid fk filter and clean up types

* fix key name

* added log when removing bad rows

* removed unused import

* bumped info to warning
This commit is contained in:
Michael Genson
2024-01-16 16:12:20 -06:00
committed by GitHub
parent b4c0a8b509
commit 2a5997a968
5 changed files with 51 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ class BackupV2(BaseService):
shutil.copytree(f, self.directories.DATA_DIR / f.name)
def restore(self, backup_path: Path) -> None:
self.logger.info("initially backup restore")
self.logger.info("initializing backup restore")
backup = BackupFile(backup_path)