Skip to content

Commit

Permalink
added replace migrations for migrations with abdm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jul 20, 2024
1 parent a9d1e17 commit 9d83712
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
30 changes: 30 additions & 0 deletions care/abdm/migrations/0014_replace_0013.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 4.2.10 on 2024-04-21 17:40

# This is a replacement migration for abdm.0013 that omits the RunPython operation (reverse_patient_abhanumber_relation) and facility migration dependency.

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("abdm", "0012_consentrequest_status"),
]

replaces = [
("abdm", "0013_abhanumber_patient"),
]

operations = [
migrations.AddField(
model_name="abhanumber",
name="patient",
field=models.OneToOneField(
blank=True,
null=True,
on_delete=django.db.models.deletion.PROTECT,
related_name="abha_number",
to="facility.patientregistration",
),
),
]
18 changes: 18 additions & 0 deletions care/facility/migrations/0444_squash_0374_0444.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.10 on 2024-04-21 17:12

# This is a replacement migration for facility.0374 and facility.0428 that creates and removes the abha_number field on PatientRegistration.

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("facility", "0373_remove_patientconsultation_hba1c"),
]

replaces = [
("facility", "0374_historicalpatientregistration_abha_number_and_more"),
("facility", "0444_remove_historicalpatientregistration_abha_number_and_more"),
]

operations = []

0 comments on commit 9d83712

Please sign in to comment.