public-health-ch/feedler/migrations/0001_initial.py

72 lines
2.8 KiB
Python
Raw Normal View History

2017-07-03 11:36:01 +00:00
# -*- coding: utf-8 -*-
2017-07-03 14:01:44 +00:00
# Generated by Django 1.11.3 on 2017-07-03 13:46
2017-07-03 11:36:01 +00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
2017-07-03 15:36:00 +00:00
dependencies = [
('wagtailcore', '__latest__'),
]
2017-07-03 11:36:01 +00:00
operations = [
migrations.CreateModel(
name='Entry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2017-07-03 14:01:44 +00:00
('raw', models.TextField(blank=True, editable=False)),
2017-07-03 11:36:01 +00:00
('updated', models.DateTimeField(auto_now=True)),
('published', models.DateTimeField(auto_now_add=True)),
2017-07-03 14:01:44 +00:00
('entry_id', models.CharField(blank=True, editable=False, max_length=255, unique=True)),
2017-07-03 11:36:01 +00:00
('title', models.CharField(max_length=255)),
2017-07-03 14:01:44 +00:00
('author', models.CharField(blank=True, max_length=255)),
2017-07-03 11:36:01 +00:00
('link', models.URLField()),
('visual', models.URLField(blank=True)),
('content', models.TextField()),
('tags', models.TextField(blank=True)),
],
options={
'verbose_name_plural': 'Entries',
},
),
migrations.CreateModel(
name='FeedlySettings',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('feedly_auth', models.TextField(blank=True, help_text='Your developer authorization key')),
('feedly_pages', models.IntegerField(blank=True, choices=[(1, '2'), (2, '5'), (3, '10'), (4, '50')], help_text='How many pages to fetch?', null=True)),
],
options={
'verbose_name': 'Feedly',
},
),
2017-07-03 14:01:44 +00:00
migrations.CreateModel(
name='Stream',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('ident', models.CharField(max_length=255)),
],
),
migrations.AddField(
model_name='feedlysettings',
name='feedly_stream',
field=models.ManyToManyField(to='feedler.Stream'),
),
migrations.AddField(
model_name='feedlysettings',
name='site',
field=models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.Site'),
),
2017-07-03 11:36:01 +00:00
migrations.AddField(
model_name='entry',
2017-07-03 14:01:44 +00:00
name='stream',
field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='feedler.Stream', verbose_name='Original stream'),
2017-07-03 11:36:01 +00:00
),
]