2024-03-23 11:39:37 +00:00
|
|
|
-- name: CreateOrUpdateGamePlayers :batchexec
|
2024-03-22 11:40:34 +00:00
|
|
|
INSERT INTO game_players(
|
|
|
|
game_id,
|
|
|
|
player_slug,
|
|
|
|
status,
|
|
|
|
team_slug)
|
|
|
|
VALUES(
|
|
|
|
$1,
|
|
|
|
$2,
|
|
|
|
$3,
|
|
|
|
$4)
|
|
|
|
ON CONFLICT (game_id, player_slug) DO UPDATE
|
|
|
|
SET status = $3,
|
|
|
|
team_slug = $4;
|
|
|
|
|