diff --git a/care/abdm/migrations/0014_replace_0013.py b/care/abdm/migrations/0014_replace_0013.py new file mode 100644 index 0000000000..1c30a4e0a7 --- /dev/null +++ b/care/abdm/migrations/0014_replace_0013.py @@ -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", + ), + ), + ] diff --git a/care/abdm/migrations/0013_abhanumber_patient.py b/care/abdm/migrations_old/0013_abhanumber_patient.py similarity index 100% rename from care/abdm/migrations/0013_abhanumber_patient.py rename to care/abdm/migrations_old/0013_abhanumber_patient.py diff --git a/care/facility/migrations/0444_squash_0374_0444.py b/care/facility/migrations/0444_squash_0374_0444.py new file mode 100644 index 0000000000..f610ebfd11 --- /dev/null +++ b/care/facility/migrations/0444_squash_0374_0444.py @@ -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 = [] diff --git a/care/facility/migrations/0374_historicalpatientregistration_abha_number_and_more.py b/care/facility/migrations_old/0374_historicalpatientregistration_abha_number_and_more.py similarity index 100% rename from care/facility/migrations/0374_historicalpatientregistration_abha_number_and_more.py rename to care/facility/migrations_old/0374_historicalpatientregistration_abha_number_and_more.py diff --git a/care/facility/migrations/0444_remove_historicalpatientregistration_abha_number_and_more.py b/care/facility/migrations_old/0444_remove_historicalpatientregistration_abha_number_and_more.py similarity index 100% rename from care/facility/migrations/0444_remove_historicalpatientregistration_abha_number_and_more.py rename to care/facility/migrations_old/0444_remove_historicalpatientregistration_abha_number_and_more.py