2024-03-23 11:39:37 +00:00
|
|
|
-- name: CreateOrUpdatePlayers :batchexec
|
2024-03-22 11:40:34 +00:00
|
|
|
INSERT INTO players (slug, display_name, birth_date, country_slug, team_slug, domestic_league_slug, avatar_url, field_position, status, shirt_number)
|
2024-03-23 11:39:37 +00:00
|
|
|
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
|
|
|
|
ON CONFLICT (slug) DO UPDATE
|
|
|
|
SET display_name = $2, birth_date = $3, country_slug = $4, team_slug = $5, domestic_league_slug = $6, avatar_url = $7, field_position = $8, status = $9, shirt_number = $10;
|