Add ability to change is_open from API

This commit is contained in:
2022-03-02 21:15:56 +00:00
parent 4fb3c2a335
commit f26ee8f472
3 changed files with 15 additions and 5 deletions

View File

@ -35,6 +35,7 @@ ORDER BY accounts.name;
-- name: UpdateAccount :one
UPDATE accounts
SET name = $1,
on_budget = $2
WHERE accounts.id = $3
on_budget = $2,
is_open = $3
WHERE accounts.id = $4
RETURNING *;