core: add index on folder and sas properties of SithFile to speed up SAS

This commit is contained in:
2019-09-06 16:16:03 +02:00
parent ca042fe75e
commit 83e225a744
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-09-06 14:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("core", "0030_auto_20190704_1500")]
operations = [
migrations.AlterField(
model_name="sithfile",
name="is_folder",
field=models.BooleanField(
db_index=True, default=True, verbose_name="is folder"
),
),
migrations.AlterField(
model_name="sithfile",
name="is_in_sas",
field=models.BooleanField(
db_index=True, default=False, verbose_name="is in the SAS"
),
),
]