-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Case Insensitive Name Matching for Applicants (#4021)
* fix: case insensitive name matching for applicants * fix: switch back to case sensitive ruleKey * Revert "fix: switch back to case sensitive ruleKey" This reverts commit 507b187. * fix: migration to standardize rule keys
- Loading branch information
Showing
4 changed files
with
98 additions
and
12 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
api/prisma/migrations/10_update_rule_keys_to_lowercase/migration.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,8 @@ | ||
-- Convert all rule keys to lowercase | ||
-- Then correct nameAndDOB in lowercased rule_keys | ||
|
||
UPDATE application_flagged_set | ||
SET rule_key = LOWER(rule_key); | ||
|
||
UPDATE application_flagged_set | ||
SET rule_key = REPLACE(rule_key, 'nameanddob', 'nameAndDOB'); |
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
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
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