sorarebuddy/model/sql/team.sql

6 lines
341 B
MySQL
Raw Normal View History

-- name: CreateOrUpdateTeams :batchexec
2024-03-21 05:34:38 +00:00
INSERT INTO teams (slug, display_name, country_slug, domestic_league_slug, short_name, picture_url, team_type)
VALUES ($1, $2, $3, $4, $5, $6, $7)
ON CONFLICT (slug) DO UPDATE
SET display_name = $2, country_slug = $3, domestic_league_slug = $4, short_name = $5, picture_url = $6, team_type = $7;