forked from I-TECH/openmrs-module-kenyaemr
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1966 from patryllus/bug/misaligned-case-manager
Updated relationship_type case manager - case manager to case manager- case , Migrated all the misaligned cases in relationships
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
api/src/main/resources/AlignCaseManagerCaseRelationships.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
SET FOREIGN_KEY_CHECKS=0; | ||
|
||
UPDATE relationship_type SET b_is_to_a = 'Client' WHERE uuid = '9065e3c6-b2f5-4f99-9cbf-f67fd9f82ec5'; | ||
|
||
UPDATE relationship r | ||
INNER JOIN relationship_type t ON r.relationship = t.relationship_type_id | ||
SET r.person_a = r.person_b , r.person_b = r.person_a | ||
WHERE t.uuid = '9065e3c6-b2f5-4f99-9cbf-f67fd9f82ec5'; | ||
|
||
SET FOREIGN_KEY_CHECKS=1; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters