Describe the bug
Healthcare services data on production and demo need to be cleaned to enable a pending migration. This migration sets a unique together constraint for the following fields on the Healthcare service model:
provider id
order code
Impact
Difficult to keep track of migrations and work on new features. This is piling up dangerous technical debt and makes it harder for make improvements to the code + build new features
To Reproduce
Steps to reproduce the behavior:
Make a migration on the patients or fhirresourcemanager apps
You'll notice that in the new migration files for fhirresourcemanager, there's a unique together constraint created for Healthcareservice for the fields (provider, order_code)
Run that migration
You'll notice that the constraint cannot be effected on the database because there are duplicates for that combination
Expected behavior
Migration should run effectively without fail
Describe the bug Healthcare services data on production and demo need to be cleaned to enable a pending migration. This migration sets a unique together constraint for the following fields on the Healthcare service model:
Impact Difficult to keep track of migrations and work on new features. This is piling up dangerous technical debt and makes it harder for make improvements to the code + build new features
To Reproduce Steps to reproduce the behavior:
patients
orfhirresourcemanager
appsHealthcareservice
for the fields(provider, order_code)
Expected behavior Migration should run effectively without fail