Your commit is writing checks your merge can't cash.

This commit is contained in:
2023-08-07 22:00:49 -04:00
parent f6528d558f
commit 4c9380c548
2 changed files with 36 additions and 0 deletions

View File

@@ -19,6 +19,11 @@ INSERT into guns
(make, model, serial_number, purchase_amount, value_amount, date_purchased, notes) VALUES
(?, ?, ?, ?, ?, ?, ?) returning id;
-- name: UpdateGun :exec
UPDATE guns
set make = ?, model = ?, serial_number = ?, purchase_amount = ?, value_amount = ?, date_purchased = ?, notes = ?
where id = ?;
-- name: DeleteGun :exec
DELETE from guns where id = ?;