Commit 3aae620c authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Add dependent migrations

parent 9098ec8e
......@@ -101,9 +101,6 @@ ENV/
dbs/
esi/db.sqlite3
esi/dbs/
esi/scraper/migrations/0001_initial.py
esi/scraper/migrations/0002_auto_20170615_1346.py
esi/scraper/migrations/0003_auto_20170616_0634.py
esi/twistd.pid
esi/celerybeat.*
esi/webapp/migrations/
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-15 11:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default=None, max_length=50, null=True)),
('job_id', models.CharField(default=None, max_length=50, null=True)),
('create_time', models.DateTimeField(default=None, null=True)),
('start_time', models.DateTimeField()),
('end_time', models.DateTimeField()),
('status', models.CharField(choices=[('DEL', 'delete'), ('FIN', 'finished'), ('RUN', 'running'), ('PEN', 'pending')], default='PEN', max_length=3)),
],
),
migrations.CreateModel(
name='Spider',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default=None, max_length=50, null=True)),
('sp_name', models.CharField(default=None, max_length=20)),
('media', models.IntegerField(default=None, null=True)),
],
),
migrations.AddField(
model_name='job',
name='spider',
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='scraper.Spider'),
),
]
#
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-15 13:46
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scraper', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='job',
name='create_time',
field=models.DateTimeField(default=datetime.datetime.now),
),
migrations.AlterField(
model_name='job',
name='end_time',
field=models.DateTimeField(default=None, null=True),
),
migrations.AlterField(
model_name='job',
name='start_time',
field=models.DateTimeField(default=None, null=True),
),
]
#
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-16 06:34
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('scraper', '0002_auto_20170615_1346'),
]
operations = [
migrations.RenameField(
model_name='job',
old_name='job_id',
new_name='job_uuid',
),
]
#
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment