rebuild some strange migration

This commit is contained in:
virusdefender
2017-02-06 17:19:53 +08:00
parent 8f8671df78
commit 7f105e4a69
6 changed files with 30 additions and 229 deletions

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.12 on 2017-01-31 09:35
# Generated by Django 1.9.12 on 2017-02-06 09:19
from __future__ import unicode_literals
from django.conf import settings
@@ -22,31 +22,35 @@ class Migration(migrations.Migration):
name='Problem',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=50)),
('title', models.CharField(max_length=128)),
('description', utils.models.RichTextField()),
('input_description', models.CharField(max_length=10000)),
('output_description', models.CharField(max_length=10000)),
('samples', models.TextField(blank=True)),
('test_case_id', models.CharField(max_length=40)),
('input_description', utils.models.RichTextField()),
('output_description', utils.models.RichTextField()),
('samples', jsonfield.fields.JSONField()),
('test_case_id', models.CharField(max_length=32)),
('test_case_score', jsonfield.fields.JSONField()),
('hint', utils.models.RichTextField(blank=True, null=True)),
('languages', jsonfield.fields.JSONField()),
('template', jsonfield.fields.JSONField()),
('create_time', models.DateTimeField(auto_now_add=True)),
('last_update_time', models.DateTimeField(blank=True, null=True)),
('time_limit', models.IntegerField()),
('memory_limit', models.IntegerField()),
('spj', models.BooleanField(default=False)),
('spj_language', models.IntegerField(blank=True, null=True)),
('spj_language', models.CharField(blank=True, max_length=32, null=True)),
('spj_code', models.TextField(blank=True, null=True)),
('spj_version', models.CharField(blank=True, max_length=32, null=True)),
('rule_type', models.CharField(max_length=32)),
('visible', models.BooleanField(default=True)),
('difficulty', models.CharField(max_length=32)),
('source', models.CharField(blank=True, max_length=200, null=True)),
('total_submit_number', models.IntegerField(default=0)),
('total_accepted_number', models.IntegerField(default=0)),
('difficulty', models.IntegerField()),
('source', models.CharField(blank=True, max_length=200, null=True)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
'db_table': 'problem',
'abstract': False,
},
),
migrations.CreateModel(
@@ -59,17 +63,6 @@ class Migration(migrations.Migration):
'db_table': 'problem_tag',
},
),
migrations.CreateModel(
name='TestCaseScore',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('test_case_id', models.CharField(max_length=32)),
('score', jsonfield.fields.JSONField()),
],
options={
'db_table': 'test_case_score',
},
),
migrations.AddField(
model_name='problem',
name='tags',