mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-11 10:06:20 +00:00
Keep track of USD value update datetime in DB
This commit is contained in:
parent
9cfd27a0b6
commit
31d8a07b97
@ -0,0 +1 @@
|
||||
ALTER TABLE "public"."issues" ADD COLUMN "value_usd_updated" timestamp without time zone;
|
@ -342,7 +342,8 @@ WHERE contract_address = :contract_address;
|
||||
-- :name update-usd-value :! :n
|
||||
-- :doc updates issue with given USD value
|
||||
UPDATE issues
|
||||
SET value_usd = :usd_value
|
||||
SET value_usd = :usd_value,
|
||||
value_usd_updated = timezone('utc'::text, now())
|
||||
WHERE contract_address = :contract_address;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user