BrickTracker/bricktracker/sql/set/update/status.sql

11 lines
218 B
MySQL
Raw Normal View History

INSERT INTO "bricktracker_set_statuses" (
2025-01-27 23:07:10 +01:00
"id",
"{{name}}"
) VALUES (
:id,
:status
)
2025-01-27 23:07:10 +01:00
ON CONFLICT("id")
DO UPDATE SET "{{name}}" = :status
2025-01-27 23:07:10 +01:00
WHERE "bricktracker_set_statuses"."id" IS NOT DISTINCT FROM :id