From c1e18430b8978c4f6cd028da4ca0cb1a89348580 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 22 Oct 2024 11:48:24 +0200 Subject: [PATCH] fix(agent): service themis b second missing - second Themis id 37 has wring name --- .../V1.2024.10.22.11.25__fix_crew_themis_b.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 backend/src/main/resources/db/migration/V1.2024.10.22.11.25__fix_crew_themis_b.sql diff --git a/backend/src/main/resources/db/migration/V1.2024.10.22.11.25__fix_crew_themis_b.sql b/backend/src/main/resources/db/migration/V1.2024.10.22.11.25__fix_crew_themis_b.sql new file mode 100644 index 00000000..5bfc33a6 --- /dev/null +++ b/backend/src/main/resources/db/migration/V1.2024.10.22.11.25__fix_crew_themis_b.sql @@ -0,0 +1,14 @@ +DO +$$ + BEGIN + UPDATE agent + SET first_name = 'Stéphane', + last_name = 'Hellio' + WHERE id = 37; + + DELETE FROM agent_service + WHERE agent_id = 37 + AND service_id = 1 + AND agent_role_id = 11; + END +$$;