From a706a9fb775188e6cea6906f18b2ebd706f3cb62 Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Sat, 28 Jan 2017 13:05:06 -0500 Subject: [PATCH] Revised migrations --- .../0007_remove_root_related_name.py | 21 -------------- ...nique.py => 0007_statement_text_unique.py} | 4 +-- .../migrations/0008_statement_conversation.py | 21 -------------- .../migrations/0009_conversation_root_null.py | 21 -------------- .../0010_conversation_statements.py | 28 ------------------- 5 files changed, 2 insertions(+), 93 deletions(-) delete mode 100644 chatterbot/ext/django_chatterbot/migrations/0007_remove_root_related_name.py rename chatterbot/ext/django_chatterbot/migrations/{0011_remove_statement_text_unique.py => 0007_statement_text_unique.py} (76%) delete mode 100644 chatterbot/ext/django_chatterbot/migrations/0008_statement_conversation.py delete mode 100644 chatterbot/ext/django_chatterbot/migrations/0009_conversation_root_null.py delete mode 100644 chatterbot/ext/django_chatterbot/migrations/0010_conversation_statements.py diff --git a/chatterbot/ext/django_chatterbot/migrations/0007_remove_root_related_name.py b/chatterbot/ext/django_chatterbot/migrations/0007_remove_root_related_name.py deleted file mode 100644 index acbd1dc37..000000000 --- a/chatterbot/ext/django_chatterbot/migrations/0007_remove_root_related_name.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11a1 on 2017-01-22 12:37 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('django_chatterbot', '0006_create_conversation'), - ] - - operations = [ - migrations.AlterField( - model_name='conversation', - name='root', - field=models.OneToOneField(help_text=b'The initiating statement in a conversation.', on_delete=django.db.models.deletion.CASCADE, related_name='+', to='django_chatterbot.Statement'), - ), - ] diff --git a/chatterbot/ext/django_chatterbot/migrations/0011_remove_statement_text_unique.py b/chatterbot/ext/django_chatterbot/migrations/0007_statement_text_unique.py similarity index 76% rename from chatterbot/ext/django_chatterbot/migrations/0011_remove_statement_text_unique.py rename to chatterbot/ext/django_chatterbot/migrations/0007_statement_text_unique.py index 74a58165e..e18fb8942 100644 --- a/chatterbot/ext/django_chatterbot/migrations/0011_remove_statement_text_unique.py +++ b/chatterbot/ext/django_chatterbot/migrations/0007_statement_text_unique.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11a1 on 2017-01-25 01:49 +# Generated by Django 1.11a1 on 2017-01-28 18:03 from __future__ import unicode_literals from django.db import migrations, models @@ -8,7 +8,7 @@ class Migration(migrations.Migration): dependencies = [ - ('django_chatterbot', '0010_conversation_statements'), + ('django_chatterbot', '0006_create_conversation'), ] operations = [ diff --git a/chatterbot/ext/django_chatterbot/migrations/0008_statement_conversation.py b/chatterbot/ext/django_chatterbot/migrations/0008_statement_conversation.py deleted file mode 100644 index 8f7ca3992..000000000 --- a/chatterbot/ext/django_chatterbot/migrations/0008_statement_conversation.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11a1 on 2017-01-22 12:40 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('django_chatterbot', '0007_remove_root_related_name'), - ] - - operations = [ - migrations.AddField( - model_name='statement', - name='conversation', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='conversation', to='django_chatterbot.Conversation'), - ), - ] diff --git a/chatterbot/ext/django_chatterbot/migrations/0009_conversation_root_null.py b/chatterbot/ext/django_chatterbot/migrations/0009_conversation_root_null.py deleted file mode 100644 index 684200ed2..000000000 --- a/chatterbot/ext/django_chatterbot/migrations/0009_conversation_root_null.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11a1 on 2017-01-22 13:35 -from __future__ import unicode_literals - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('django_chatterbot', '0008_statement_conversation'), - ] - - operations = [ - migrations.AlterField( - model_name='conversation', - name='root', - field=models.OneToOneField(help_text=b'The initiating statement in a conversation.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='django_chatterbot.Statement'), - ), - ] diff --git a/chatterbot/ext/django_chatterbot/migrations/0010_conversation_statements.py b/chatterbot/ext/django_chatterbot/migrations/0010_conversation_statements.py deleted file mode 100644 index 96d12587f..000000000 --- a/chatterbot/ext/django_chatterbot/migrations/0010_conversation_statements.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11a1 on 2017-01-22 14:50 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('django_chatterbot', '0009_conversation_root_null'), - ] - - operations = [ - migrations.RemoveField( - model_name='conversation', - name='root', - ), - migrations.RemoveField( - model_name='statement', - name='conversation', - ), - migrations.AddField( - model_name='conversation', - name='statements', - field=models.ManyToManyField(help_text=b'The statements in this conversation.', null=True, related_name='conversation', to='django_chatterbot.Statement'), - ), - ]