增加修改数据库表名 migration

This commit is contained in:
virusdefender 2015-10-08 11:25:35 +08:00
parent 163ae0ae53
commit 779a8e9e40
3 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('account', '0006_auto_20150924_1530'),
]
operations = [
migrations.AddField(
model_name='user',
name='reset_password_token',
field=models.CharField(max_length=40, null=True, blank=True),
),
migrations.AlterField(
model_name='user',
name='problems_status',
field=jsonfield.fields.JSONField(default={}),
),
]

View File

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('contest', '0011_contestrank'),
]
operations = [
migrations.AlterField(
model_name='contestrank',
name='submission_info',
field=jsonfield.fields.JSONField(default={}),
),
migrations.AlterModelTable(
name='contestrank',
table='contest_rank',
),
]

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('problem', '0008_auto_20150922_1702'),
]
operations = [
migrations.AlterModelTable(
name='problem',
table='problem',
),
]