Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create migration to ensure workplaces with CQC status change records have parent approval record #6307

Conversation

duncanc19
Copy link
Collaborator

Issue

The previous fix PR created a migration to add become a parent records to parent workplaces with no approval record. This worked on the assumption that these accounts would have no records in the Approvals table. However, workplaces with CQC status change records were not included in the update. This PR ensures those workplaces are also updated.

Work done

  • Created new migration to ensure workplaces with CQC status change records have parent approval record, by adding check for parent approval type to the previous query.

Tests

Does this PR include tests for the changes introduced?

  • Yes
  • No, I found it difficult to test
  • No, they are not required for this change

@duncanc19 duncanc19 merged commit 7039c83 into main Jul 30, 2024
5 checks passed
@duncanc19 duncanc19 deleted the fix/1476-update-parent-approval-for-workplaces-with-cqc-change-record branch July 30, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants