fix last update timestamp on newly created items

This commit is contained in:
Bart Akeley 2019-03-02 09:47:45 -06:00
parent 90c6114166
commit 8b700c9765

View file

@ -41,7 +41,7 @@ ORDER BY quantity DESC
-- :name insert-quantity-query
INSERT INTO quantities (food_item_id, quantity, date)
VALUES (:v:food_item_id::uuid, :v:quantity::quantity, current_timestamp)
VALUES (:v:food_item_id::uuid, :v:quantity::quantity, now())
RETURNING *
-- :name select-latest-quantity-query