mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 02:48:12 +08:00
migrations
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
import picklefield.fields
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Task',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
|
||||||
|
('name', models.CharField(max_length=100)),
|
||||||
|
('func', models.CharField(max_length=256)),
|
||||||
|
('task', picklefield.fields.PickledObjectField(editable=False)),
|
||||||
|
('result', picklefield.fields.PickledObjectField(editable=False)),
|
||||||
|
('started', models.DateTimeField()),
|
||||||
|
('stopped', models.DateTimeField()),
|
||||||
|
('success', models.BooleanField(default=True)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user