Skip to content
Snippets Groups Projects
Verified Commit 01c0485d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add db index. Advances BiscuIT-ng#55.

parent e0d09a63
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.2.4 on 2019-09-04 13:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
('exlibris', '0001_initial'),
]
operations = [
migrations.AddIndex(
model_name='bookcopy',
index=models.Index(fields=['barcode'], name='exlibris_bo_co_barc_55ac33_idx'),
),
]
......@@ -88,3 +88,4 @@ class BookCopy(models.Model):
class Meta:
ordering = ['book__title', 'book__year', 'book__edition', 'copy_num']
indexes = [models.Index(fields=['barcode'])]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment