Added indexes for ownerId and ownerSource fields in study templates model
This commit is contained in:
parent
b7ffa16b40
commit
2b92d317f1
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.27 on 2020-01-28 09:39
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('model', '0005_auto_20200128_1140'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='studytemplate',
|
||||
name='ownerId',
|
||||
field=models.CharField(db_index=True, max_length=200),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='studytemplate',
|
||||
name='ownerSource',
|
||||
field=models.CharField(db_index=True, max_length=200),
|
||||
),
|
||||
]
|
|
@ -19,8 +19,8 @@ class Chart(models.Model):
|
|||
|
||||
|
||||
class StudyTemplate(models.Model):
|
||||
ownerSource = models.CharField(max_length=200)
|
||||
ownerId = models.CharField(max_length=200)
|
||||
ownerSource = models.CharField(max_length=200, db_index=True)
|
||||
ownerId = models.CharField(max_length=200, db_index=True)
|
||||
name = models.CharField(max_length=200)
|
||||
content = JSONField()
|
||||
|
||||
|
|
Loading…
Reference in New Issue