Skip to content

Commit

Permalink
Merge pull request #514 from MTES-MCT/lenoir-jb
Browse files Browse the repository at this point in the history
fix: add new crew member for JB A
  • Loading branch information
lwih authored Jan 22, 2025
2 parents 40b46fc + 88af7c8 commit 84a6c07
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
$$;

0 comments on commit 84a6c07

Please sign in to comment.