Skip to content

Commit ceaacf0

Browse files
Sepehr-Sobhanipbastia
authored andcommitted
chore: fix migration post-rebase
1 parent c7fb89c commit ceaacf0

2 files changed

Lines changed: 28 additions & 64 deletions

File tree

bc_obps/compliance/migrations/0001_initial.py

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 5.1.12 on 2025-09-17 00:46
1+
# Generated by Django 5.1.12 on 2025-09-17 23:57
22

33
import compliance.models.elicensing_interest_rate
44
import django.contrib.postgres.constraints
@@ -15,8 +15,8 @@ class Migration(migrations.Migration):
1515
initial = True
1616

1717
dependencies = [
18-
('registration', '0137_V3_19_0'),
19-
('reporting', '0130_V3_19_0'),
18+
('registration', '0138_V3_20_0'),
19+
('reporting', '0131_V3_20_0'),
2020
]
2121

2222
operations = [
@@ -1171,14 +1171,18 @@ class Migration(migrations.Migration):
11711171
blank=True,
11721172
choices=[
11731173
('Supplementary Report Adjustment', 'Supplementary Report Adjustment'),
1174+
(
1175+
'Supplementary Report Adjustment to Void Invoice',
1176+
'Supplementary Report Adjustment To Void Invoice',
1177+
),
11741178
('Compliance Units Applied', 'Compliance Units Applied'),
11751179
],
1176-
db_comment='Reason for adjustment in elicesning',
1180+
db_comment='Reason for adjustment in elicensing',
11771181
null=True,
11781182
),
11791183
),
1180-
('type', models.CharField(blank=True, db_comment='Type of adjustment in elicesning', null=True)),
1181-
('comment', models.CharField(blank=True, db_comment='Comments on adjustment in elicesning', null=True)),
1184+
('type', models.CharField(blank=True, db_comment='Type of adjustment in elicensing', null=True)),
1185+
('comment', models.CharField(blank=True, db_comment='Comments on adjustment in elicensing', null=True)),
11821186
(
11831187
'archived_by',
11841188
models.ForeignKey(
@@ -2043,6 +2047,24 @@ class Migration(migrations.Migration):
20432047
),
20442048
),
20452049
),
2050+
migrations.AddConstraint(
2051+
model_name='elicensingadjustment',
2052+
constraint=models.CheckConstraint(
2053+
condition=models.Q(
2054+
('reason__isnull', True),
2055+
models.Q(
2056+
(
2057+
'reason__in',
2058+
['Supplementary Report Adjustment', 'Supplementary Report Adjustment to Void Invoice'],
2059+
),
2060+
_negated=True,
2061+
),
2062+
('supplementary_compliance_report_version__isnull', False),
2063+
_connector='OR',
2064+
),
2065+
name='supp_reasons_require_supp_version',
2066+
),
2067+
),
20462068
pgtrigger.migrations.AddTrigger(
20472069
model_name='elicensingadjustment',
20482070
trigger=pgtrigger.compiler.Trigger(

bc_obps/compliance/migrations/0031_alter_elicensingadjustment_comment_and_more.py

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

0 commit comments

Comments
 (0)