Skip to content

Commit

Permalink
Remove no longer needed index on Labelling.label
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jan 30, 2018
1 parent bd62b06 commit e9f60a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions casepro/msgs/migrations/0063_auto_20180130_1454.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-30 14:54
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('msgs', '0062_auto_20180126_2250'),
]

operations = [
migrations.AlterField(
model_name='labelling',
name='label',
field=models.ForeignKey(db_index=False, on_delete=django.db.models.deletion.CASCADE, to='msgs.Label'),
),
]
2 changes: 1 addition & 1 deletion casepro/msgs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Labelling(models.Model):
"""
message = models.ForeignKey('msgs.Message', on_delete=models.CASCADE)

label = models.ForeignKey(Label, on_delete=models.CASCADE)
label = models.ForeignKey(Label, db_index=False, on_delete=models.CASCADE)

message_created_on = models.DateTimeField()

Expand Down

0 comments on commit e9f60a6

Please sign in to comment.