mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-22 02:45:10 -04:00
patch migration JSONField as well
This commit is contained in:
parent
081d94d799
commit
1c87c27105
1 changed files with 7 additions and 1 deletions
|
@ -9,6 +9,12 @@ import django.db.models.deletion
|
||||||
from config import CONFIG
|
from config import CONFIG
|
||||||
from index.json import to_json
|
from index.json import to_json
|
||||||
|
|
||||||
|
try:
|
||||||
|
JSONField = models.JSONField
|
||||||
|
except AttributeError:
|
||||||
|
import jsonfield
|
||||||
|
JSONField = jsonfield.JSONField
|
||||||
|
|
||||||
|
|
||||||
def forwards_func(apps, schema_editor):
|
def forwards_func(apps, schema_editor):
|
||||||
from core.models import EXTRACTORS
|
from core.models import EXTRACTORS
|
||||||
|
@ -76,7 +82,7 @@ class Migration(migrations.Migration):
|
||||||
name='ArchiveResult',
|
name='ArchiveResult',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('cmd', models.JSONField()),
|
('cmd', JSONField()),
|
||||||
('pwd', models.CharField(max_length=256)),
|
('pwd', models.CharField(max_length=256)),
|
||||||
('cmd_version', models.CharField(max_length=32)),
|
('cmd_version', models.CharField(max_length=32)),
|
||||||
('status', models.CharField(choices=[('succeeded', 'succeeded'), ('failed', 'failed'), ('skipped', 'skipped')], max_length=16)),
|
('status', models.CharField(choices=[('succeeded', 'succeeded'), ('failed', 'failed'), ('skipped', 'skipped')], max_length=16)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue