1
0
Fork 0

fix: Make cmd_version nullable

This commit is contained in:
Cristian 2021-01-05 09:23:19 -05:00 committed by Nick Sweeting
parent c21af37ed4
commit 14d1b3209e
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# Generated by Django 3.1.3 on 2021-01-04 14:58
# Generated by Django 3.1.3 on 2021-01-05 14:21
from django.db import migrations, models
@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='archiveresult',
name='cmd_version',
field=models.CharField(default='', max_length=32),
field=models.CharField(blank=True, default=None, max_length=32, null=True),
),
]

View file

@ -181,7 +181,7 @@ class ArchiveResult(models.Model):
snapshot = models.ForeignKey(Snapshot, on_delete=models.CASCADE)
cmd = JSONField()
pwd = models.CharField(max_length=256)
cmd_version = models.CharField(max_length=32, default="")
cmd_version = models.CharField(max_length=32, default=None, null=True, blank=True)
output = models.CharField(max_length=512)
start_ts = models.DateTimeField()
end_ts = models.DateTimeField()