Skip to content

Commit

Permalink
merge migrations (#1752)
Browse files Browse the repository at this point in the history
* merge migrations

* fix bad migration from #1505

* fix tests
  • Loading branch information
sainak authored Dec 7, 2023
1 parent 2407f67 commit 6ea03f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion care/facility/api/serializers/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def update(self, instance, validated_data):
"nullable": True,
}
)
class ResolvedMiddlewareField(serializers.Field):
class ResolvedMiddlewareField(serializers.JSONField):
pass


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def convert_negative_to_positive(apps, schema_editor):
HospitalDoctors = apps.get_model("care", "HospitalDoctors")
HospitalDoctors = apps.get_model("facility", "HospitalDoctors")
HospitalDoctors.objects.filter(count__lt=0).update(count=F("count") * -1)


Expand Down
12 changes: 12 additions & 0 deletions care/facility/migrations/0401_merge_20231208_0054.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by Django 4.2.5 on 2023-12-07 19:24

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("facility", "0393_alter_hospitaldoctors_count"),
("facility", "0400_merge_20231208_0016"),
]

operations = []

0 comments on commit 6ea03f9

Please sign in to comment.