From 762d12156a2330d9a9f9230e764327e697a85d2d Mon Sep 17 00:00:00 2001 From: Jonathan Funk Date: Fri, 11 Oct 2024 12:03:44 -0700 Subject: [PATCH] Add additional where to update --- migrations/migrations/R__Create-Test-Data.sql | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/migrations/migrations/R__Create-Test-Data.sql b/migrations/migrations/R__Create-Test-Data.sql index 213d113d7..b57a39b51 100644 --- a/migrations/migrations/R__Create-Test-Data.sql +++ b/migrations/migrations/R__Create-Test-Data.sql @@ -1956,8 +1956,13 @@ DO NOTHING; -- Fix keycloak name UPDATE public.officer -SET user_id = 'JONFUNK' -WHERE officer_guid = 'b17ee2c1-a26b-4911-ac6f-810b8fdfaab3'; +SET + user_id = 'JONFUNK' +WHERE + ( + officer_guid = 'b17ee2c1-a26b-4911-ac6f-810b8fdfaab3' + AND user_id = 'JFUNK' + ); INSERT INTO public.officer (