Skip to content

Commit

Permalink
chore: Add index to the username field of DSC
Browse files Browse the repository at this point in the history
  • Loading branch information
macdiesel committed Oct 7, 2024
1 parent 4ff2441 commit 15cf0b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.15 on 2024-10-07 14:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('consent', '0006_alter_historicaldatasharingconsent_options'),
]

operations = [
migrations.AddIndex(
model_name='datasharingconsent',
index=models.Index(fields=['username'], name='consent_dat_usernam_fae23a_idx'),
),
]
3 changes: 3 additions & 0 deletions consent/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ class Meta:

abstract = True
app_label = 'consent'
indexes = [
models.Index(fields=['username'])
]

enterprise_customer = models.ForeignKey(
EnterpriseCustomer,
Expand Down

0 comments on commit 15cf0b9

Please sign in to comment.