From bf9164ae6690ecf5c665b45033668c213a5e8e8a Mon Sep 17 00:00:00 2001 From: Maria Traskowsky Date: Thu, 6 Mar 2025 23:44:42 +0000 Subject: [PATCH] fixes for trailing whitespace --- ...250225183302_fn_prime_acknowledge_moves_shipments.up.sql | 6 +++--- .../20250227160358_B-21966_add_data_to_office_users.up.sql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/migrations/app/ddl_migrations/ddl_functions/20250225183302_fn_prime_acknowledge_moves_shipments.up.sql b/migrations/app/ddl_migrations/ddl_functions/20250225183302_fn_prime_acknowledge_moves_shipments.up.sql index 93409303ba0..65c31f69ea6 100644 --- a/migrations/app/ddl_migrations/ddl_functions/20250225183302_fn_prime_acknowledge_moves_shipments.up.sql +++ b/migrations/app/ddl_migrations/ddl_functions/20250225183302_fn_prime_acknowledge_moves_shipments.up.sql @@ -47,9 +47,9 @@ BEGIN RAISE WARNING ''%'', v_log_message; ELSE v_log_message := format(''Successfully updated moves.prime_acknowledged_at value to %s for id %s'', v_move_prime_acknowledged_at, v_move_id); - RAISE NOTICE ''%'', v_log_message; + RAISE NOTICE ''%'', v_log_message; END IF; - END IF; + END IF; -- Check if mtoShipments exists and is an array IF jsonb_typeof(v_move_record->''mtoShipments'') = ''array'' THEN @@ -78,7 +78,7 @@ BEGIN RAISE WARNING ''%'', v_log_message; ELSE v_log_message := format(''Successfully updated mto_shipments.prime_acknowledged_at value to %s for id %s'', v_shipment_prime_acknowledged_at, v_shipment_id); - RAISE NOTICE ''%'', v_log_message; + RAISE NOTICE ''%'', v_log_message; END IF; END IF; END LOOP; diff --git a/migrations/app/schema/20250227160358_B-21966_add_data_to_office_users.up.sql b/migrations/app/schema/20250227160358_B-21966_add_data_to_office_users.up.sql index 9d2a9e3b94f..f3b8cfc73ed 100644 --- a/migrations/app/schema/20250227160358_B-21966_add_data_to_office_users.up.sql +++ b/migrations/app/schema/20250227160358_B-21966_add_data_to_office_users.up.sql @@ -1,5 +1,5 @@ -- Adds rejectedOn date to pre-existing rejected office users. -UPDATE office_users -SET rejected_on = updated_at -WHERE +UPDATE office_users +SET rejected_on = updated_at +WHERE status ='REJECTED'::public."office_user_status" AND rejected_on is null;