Commit b1059504 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

manual flush migration

parent 772e934d
# Generated by Django 2.0.1 on 2018-01-11 15:46
import django.db.models.deletion
from django.db import migrations, models
# Generated by Django 2.0.1 on 2018-01-12 10:31
import autoslug.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import ndh.models
......@@ -12,9 +12,25 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, unique=True)),
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
('year', models.PositiveSmallIntegerField()),
('url', models.URLField()),
('pdf', models.URLField()),
('authors', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Branch',
fields=[
......@@ -88,6 +104,7 @@ class Migration(migrations.Migration):
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
('private', models.BooleanField(default=False)),
('homepage', models.URLField(blank=True, null=True)),
('articles', models.ManyToManyField(to='rainboard.Article')),
('license', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='rainboard.License')),
('main_namespace', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='rainboard.Namespace')),
],
......
# Generated by Django 2.0.1 on 2018-01-12 10:07
from django.conf import settings
from django.db import migrations, models
import autoslug.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('rainboard', '0002_forges'),
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, unique=True)),
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name', unique=True)),
('year', models.PositiveSmallIntegerField()),
('url', models.URLField()),
('pdf', models.URLField()),
('authors', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='project',
name='articles',
field=models.ManyToManyField(to='rainboard.Article'),
),
]
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