khaganat-web/logs/migrations/0001_initial.py

40 lines
1.3 KiB
Python
Raw Normal View History

2018-01-27 20:15:54 +00:00
# Generated by Django 2.0.1 on 2018-01-27 20:08
2018-01-27 17:58:36 +00:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Entry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('hidden', models.BooleanField(default=False)),
('created', models.DateTimeField()),
('nick', models.CharField(max_length=128)),
('content', models.CharField(max_length=2048)),
],
),
migrations.CreateModel(
name='Source',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128)),
2018-01-27 20:15:54 +00:00
('slug', models.CharField(max_length=128, unique=True)),
2018-01-27 17:58:36 +00:00
('hidden', models.BooleanField(default=False)),
],
),
migrations.AddField(
model_name='entry',
name='source',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='logs.Source'),
),
]