Added site setting.

This commit is contained in:
Leon Mika 2025-02-02 09:54:30 +11:00
parent 39611070f8
commit 3774c903e2
17 changed files with 170 additions and 18 deletions

View file

@ -12,4 +12,11 @@ INSERT INTO sites (
theme,
props
) VALUES ($1, $2, $3, $4, $5)
RETURNING id;
RETURNING id;
-- name: UpdateSite :exec
UPDATE sites SET
name = $2,
title = $3,
theme = $4
WHERE id = $1;