Commit 6acd214a authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'cleanup-migrations' into 'master'

minor: cleanup-migrations

See merge request !9
parents 7e2abdd9 b2449825
Pipeline #5050 passed with stage
in 27 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-28 09:06
# Generated by Django 1.11.20 on 2019-08-28 12:01
from __future__ import unicode_literals
from django.conf import settings
......@@ -17,35 +17,29 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name='Message',
name='Conversation',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dateCreated', models.DateField(auto_now_add=True)),
('text', models.TextField()),
('title', models.TextField()),
('text', models.TextField(null=True)),
('dateCreated', models.DateTimeField(auto_now_add=True)),
('author_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ['dateCreated'],
'permissions': (('view_message', 'Read'), ('control_message', 'Control')),
'ordering': ['-dateCreated'],
},
),
migrations.CreateModel(
name='Thread',
name='Message',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=255)),
('text', models.TextField(null=True)),
('dateCreated', models.DateTimeField(auto_now_add=True)),
('dateCreated', models.DateField(auto_now_add=True)),
('text', models.TextField()),
('author_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('conversation', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='djangoldp_conversation.Conversation')),
],
options={
'ordering': ['-dateCreated'],
'permissions': (('view_thread', 'Read'), ('control_thread', 'Control')),
'ordering': ['dateCreated'],
},
),
migrations.AddField(
model_name='message',
name='thread',
field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='djangoldp_conversation.Thread'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-02-27 10:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_conversation', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='thread',
name='title',
field=models.TextField(),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-03 03:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_conversation', '0002_auto_20190227_1041'),
]
operations = [
migrations.RenameModel(
old_name='Thread',
new_name='Conversation',
),
migrations.AlterModelOptions(
name='conversation',
options={'ordering': ['-dateCreated'], 'permissions': (('view_conversation', 'Read'), ('control_conversation', 'Control'))},
),
migrations.RenameField(
model_name='message',
old_name='thread',
new_name='conversation',
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-07-29 14:05
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_conversation', '0003_auto_20190503_0323'),
]
operations = [
migrations.AlterModelOptions(
name='conversation',
options={'ordering': ['-dateCreated']},
),
migrations.AlterModelOptions(
name='message',
options={'ordering': ['dateCreated']},
),
]
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