Skip to content

Commit adcc994

Browse files
authored
Merge pull request #2962 from fedspendingtransparency/fix/dev-6798-defc-u-migrations
[DEV-6798] new migration to include U in partial index
2 parents 661f0e6 + 5a21cd4 commit adcc994

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

usaspending_api/awards/migrations/0078_auto_20210126_1817.py renamed to usaspending_api/awards/migrations/0078_auto_20210211_2237.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 2.2.9 on 2021-01-26 18:17
1+
# Generated by Django 2.2.18 on 2021-02-11 22:37
22

33
from django.db import migrations, models
44

@@ -16,6 +16,6 @@ class Migration(migrations.Migration):
1616
),
1717
migrations.AddIndex(
1818
model_name='financialaccountsbyawards',
19-
index=models.Index(condition=models.Q(disaster_emergency_fund__in=['L', 'M', 'N', 'O', 'P', 'R']), fields=['submission', 'distinct_award_key', 'piid', 'transaction_obligated_amount', 'gross_outlay_amount_by_award_cpe'], name='faba_subid_awardkey_sums_idx'),
19+
index=models.Index(condition=models.Q(disaster_emergency_fund__in=['L', 'M', 'N', 'O', 'P', 'U']), fields=['submission', 'distinct_award_key', 'piid', 'transaction_obligated_amount', 'gross_outlay_amount_by_award_cpe'], name='faba_subid_awardkey_sums_idx'),
2020
),
2121
]

usaspending_api/awards/migrations/0079_auto_20210128_2234.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

usaspending_api/awards/models/financial_accounts_by_awards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ class Meta:
159159
"gross_outlay_amount_by_award_cpe",
160160
],
161161
name="faba_subid_awardkey_sums_idx",
162-
condition=Q(disaster_emergency_fund__in=["L", "M", "N", "O", "P"]),
162+
condition=Q(disaster_emergency_fund__in=["L", "M", "N", "O", "P", "U"]),
163163
)
164164
]

0 commit comments

Comments
 (0)