diff --git a/chatterbot/ext/django_chatterbot/migrations/0007_create_phrase.py b/chatterbot/ext/django_chatterbot/migrations/0007_create_phrase.py deleted file mode 100644 index b2b656188..000000000 --- a/chatterbot/ext/django_chatterbot/migrations/0007_create_phrase.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11 on 2017-07-14 21:58 -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.CreateModel( - name='Phrase', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('text', models.CharField(blank=True, max_length=255)), - ], - options={ - 'abstract': False, - }, - ), - migrations.AlterField( - model_name='conversation', - name='statements', - field=models.ManyToManyField(help_text='The phrases in this conversation.', related_name='conversations', to='django_chatterbot.Phrase'), - ), - migrations.AlterField( - model_name='statement', - name='text', - field=models.CharField(max_length=255), - ), - migrations.AddField( - model_name='statement', - name='phrase', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='statements', to='django_chatterbot.Phrase'), - ), - ] diff --git a/chatterbot/ext/django_chatterbot/migrations/0008_remove_phrase.py b/chatterbot/ext/django_chatterbot/migrations/0008_update_conversations.py similarity index 52% rename from chatterbot/ext/django_chatterbot/migrations/0008_remove_phrase.py rename to chatterbot/ext/django_chatterbot/migrations/0008_update_conversations.py index 6746a0793..f3bd72049 100644 --- a/chatterbot/ext/django_chatterbot/migrations/0008_remove_phrase.py +++ b/chatterbot/ext/django_chatterbot/migrations/0008_update_conversations.py @@ -1,15 +1,14 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11 on 2017-07-15 13:44 +# Generated by Django 1.11 on 2017-07-18 11:25 from __future__ import unicode_literals from django.db import migrations, models -import django.utils.timezone class Migration(migrations.Migration): dependencies = [ - ('django_chatterbot', '0007_create_phrase'), + ('django_chatterbot', '0007_response_created_at'), ] operations = [ @@ -25,26 +24,9 @@ class Migration(migrations.Migration): model_name='statement', name='created_at', ), - migrations.RemoveField( - model_name='statement', - name='phrase', - ), migrations.AddField( model_name='conversation', name='responses', field=models.ManyToManyField(help_text='The responses in this conversation.', related_name='conversations', to='django_chatterbot.Response'), ), - migrations.AddField( - model_name='response', - name='created_at', - field=models.DateTimeField(default=django.utils.timezone.now, help_text='The date and time that this statement was created at.'), - ), - migrations.AlterField( - model_name='statement', - name='text', - field=models.CharField(max_length=255, unique=True), - ), - migrations.DeleteModel( - name='Phrase', - ), ]