mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-20 03:20:33 +00:00
Merge branch 'dev' into virusdefender-dev
* dev: 修复数据库已有用户problems_statu字段为空造成的问题
This commit is contained in:
commit
26c46f1e2a
18
account/migrations/0004_remove_user_problems_status.py
Normal file
18
account/migrations/0004_remove_user_problems_status.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('account', '0003_auto_20150915_2025'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='user',
|
||||||
|
name='problems_status',
|
||||||
|
),
|
||||||
|
]
|
19
account/migrations/0005_user_problems_status.py
Normal file
19
account/migrations/0005_user_problems_status.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('account', '0004_remove_user_problems_status'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='user',
|
||||||
|
name='problems_status',
|
||||||
|
field=models.TextField(default=b'{}'),
|
||||||
|
),
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user