-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds uniqueness and a db index to the MergedMRN.mrn column
We query this column a lot via MRN so add a db index. If there are duplicate rows with the same MRN something wrong has happened so enforce uniqueness.
- Loading branch information
fredkingham
committed
Dec 9, 2022
1 parent
727e4de
commit 3d529a1
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.16 on 2022-12-09 14:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('elcid', '0066_auto_20221201_1527'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='mergedmrn', | ||
name='mrn', | ||
field=models.CharField(db_index=True, max_length=256, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters