mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 21:38:33 +00:00
fix: Give cmd_version a default value in case it is not present
This commit is contained in:
parent
ad7849d319
commit
c21af37ed4
2 changed files with 19 additions and 1 deletions
18
archivebox/core/migrations/0008_auto_20210104_1458.py
Normal file
18
archivebox/core/migrations/0008_auto_20210104_1458.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.1.3 on 2021-01-04 14:58
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0007_archiveresult'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='archiveresult',
|
||||
name='cmd_version',
|
||||
field=models.CharField(default='', max_length=32),
|
||||
),
|
||||
]
|
|
@ -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)
|
||||
cmd_version = models.CharField(max_length=32, default="")
|
||||
output = models.CharField(max_length=512)
|
||||
start_ts = models.DateTimeField()
|
||||
end_ts = models.DateTimeField()
|
||||
|
|
Loading…
Add table
Reference in a new issue