1
0
Fork 0
mirror of synced 2024-05-17 19:02:33 +12:00

fix migration failing due to null cmd_versions in older archives

This commit is contained in:
Nick Sweeting 2021-01-12 12:55:38 +02:00
parent b5ce5b35a8
commit a3008c8189

View file

@ -36,7 +36,7 @@ def forwards_func(apps, schema_editor):
for extractor in history:
for result in history[extractor]:
ArchiveResult.objects.create(extractor=extractor, snapshot=snapshot, cmd=result["cmd"], cmd_version=result["cmd_version"],
ArchiveResult.objects.create(extractor=extractor, snapshot=snapshot, cmd=result["cmd"], cmd_version=result["cmd_version"] or 'unknown',
start_ts=result["start_ts"], end_ts=result["end_ts"], status=result["status"], pwd=result["pwd"], output=result["output"])