From 88af7c8148ae9440f0ac48d6ea585c830f9880e1 Mon Sep 17 00:00:00 2001 From: lwih Date: Wed, 22 Jan 2025 11:01:44 +0100 Subject: [PATCH] fix: add new crew member for JB A --- .../V1.2025.01.22.10.54__update_crew_jb_a.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 backend/src/main/resources/db/migration/V1.2025.01.22.10.54__update_crew_jb_a.sql diff --git a/backend/src/main/resources/db/migration/V1.2025.01.22.10.54__update_crew_jb_a.sql b/backend/src/main/resources/db/migration/V1.2025.01.22.10.54__update_crew_jb_a.sql new file mode 100644 index 000000000..0c49c0b07 --- /dev/null +++ b/backend/src/main/resources/db/migration/V1.2025.01.22.10.54__update_crew_jb_a.sql @@ -0,0 +1,15 @@ +DO +$$ + BEGIN + + WITH inserted_agent AS ( + INSERT INTO agent (first_name, last_name) + VALUES ('José', 'Lenoir') + RETURNING id) + INSERT + INTO agent_service (agent_id, service_id, agent_role_id) + SELECT id, 1, 17 + FROM inserted_agent; + + END +$$;