alter to text field

This commit is contained in:
virusdefender
2018-05-01 12:54:27 +08:00
parent 5cb907fa94
commit 3bb3becfcf
15 changed files with 381 additions and 43 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-05-01 04:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('options', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='sysoptions',
name='key',
field=models.TextField(db_index=True, unique=True),
),
]

View File

@@ -3,5 +3,5 @@ from utils.models import JSONField
class SysOptions(models.Model):
key = models.CharField(max_length=128, unique=True, db_index=True)
key = models.TextField(unique=True, db_index=True)
value = JSONField()