diff --git a/care/facility/migrations/0438_alter_dailyround_patient_category_and_more.py b/care/facility/migrations/0438_alter_dailyround_patient_category_and_more.py index 21e0f961d7..021802db0b 100644 --- a/care/facility/migrations/0438_alter_dailyround_patient_category_and_more.py +++ b/care/facility/migrations/0438_alter_dailyround_patient_category_and_more.py @@ -12,9 +12,15 @@ def rename_categories_in_events(apps, schema_editor): PatientConsultationEvent.objects.filter( event_type__name="CATEGORY", value__category="Stable" ).update(value={"category": "Mild"}) + PatientConsultationEvent.objects.filter( + event_type__name="PATIENT_CATEGORY", value__category="Stable" + ).update(value={"patient_category": "Mild"}) PatientConsultationEvent.objects.filter( event_type__name="CATEGORY", value__category="Abnormal" ).update(value={"category": "Moderate"}) + PatientConsultationEvent.objects.filter( + event_type__name="PATIENT_CATEGORY", value__category="Abnormal" + ).update(value={"patient_category": "Moderate"}) dependencies = [ ("facility", "0437_alter_dailyround_rounds_type"),