File: /www/exchange2/sql/custom/TK81451-fix-CM-role-mapping-entries.sql
/* Update Queries for TK81451 */
/* Lena Ryan, Investor ID: 20150727000371 */
/* Fixes for the relationship for Role Mapping and Bank entry records in Credebt Machine DB */
UPDATE public.ledgers_role_mapping SET entity_id = 1433 WHERE entity_id = 185 AND entity_type = 2;
/* Peter Clarke, Investor ID: 20181213001639 */
/* Fixes for the relationship for Role Mapping and Bank entry records in Credebt Machine DB */
UPDATE public.ledgers_role_mapping SET entity_id = 2059 WHERE entity_id = 773 AND entity_type = 2;
/* Fiona Roche & John Lahart, Investor ID: 20181120001619 */
/* Fixes for the relationship for Role Mapping and Bank entry records in Credebt Machine DB */
UPDATE public.ledgers_role_mapping SET entity_id = 2046 WHERE entity_id = 761 AND entity_type = 2;
/* Mairead Higgins, Investor ID: 20180807001580 */
/* Fixes for the relationship for Role Mapping and Bank entry records in Credebt Machine DB */
UPDATE public.ledgers_role_mapping SET entity_id = 2010 WHERE entity_id = 725 AND entity_type = 2;