feat: allow editing org icon (#13547)

This commit is contained in:
Kayla Washburn-Love
2024-06-12 12:28:13 -06:00
committed by GitHub
parent 58bf0ec1c6
commit 28228f1bcb
19 changed files with 116 additions and 22 deletions
+4 -3
View File
@@ -49,10 +49,10 @@ WHERE
-- name: InsertOrganization :one
INSERT INTO
organizations (id, "name", display_name, description, created_at, updated_at, is_default)
organizations (id, "name", display_name, description, icon, created_at, updated_at, is_default)
VALUES
-- If no organizations exist, and this is the first, make it the default.
(@id, @name, @display_name, @description, @created_at, @updated_at, (SELECT TRUE FROM organizations LIMIT 1) IS NULL) RETURNING *;
(@id, @name, @display_name, @description, @icon, @created_at, @updated_at, (SELECT TRUE FROM organizations LIMIT 1) IS NULL) RETURNING *;
-- name: UpdateOrganization :one
UPDATE
@@ -61,7 +61,8 @@ SET
updated_at = @updated_at,
name = @name,
display_name = @display_name,
description = @description
description = @description,
icon = @icon
WHERE
id = @id
RETURNING *;