JUFBTX45TKSZMB2D4CGNB73UYM5FXAV2QMKIHBSMHEQDAECYP7HQC
M4PWY5RUV72AEDCNC4O7UKBPHBIACR4354YTSC3SUZGWFV5UBJBQC
X3ES7NUA42D2BF7CQDDKXM5CLMVCYA3H5YU5KXLPTGDBFPE2LNVAC
LAROLAYUGJ4Q5AEFV5EJMIA2ZKBNCBWHHHPCJ3CKCNIUIYUKRFVQC
IZEVQF627FA7VV25KJAWYWGGC35LZUUBBQRPN5ZAINTQLPEDRTEAC
EFSXYZPOGA5M4DN65IEIDO7JK6U34DMQELAPHOIL2UAT6HRC66BAC
B6HWAPDPXIWH7CHK5VLMWLL6EQN6NOFZEFYO47BPUY2ZO4SL7VDAC
64C6AWH66FDKU6UE6Z6JPX2J2GBM2JOPTH2GL6LHKAIUBGNGDZ5AC
5OI44E4EEVYOMHDWNK2WA7K4L4JWRWCUJUNN2UAUGE5VY4W7GTNAC
2WOOGXDHVQ6L2MQYUTLJ6H6FVSQNJN6SMJL5DG7HAHFYPJLRT2SAC
Z3MK2PJ5U222DXRS22WCDHVPZ7HVAR3HOCUNXIGX6VMEPBQDF6PQC
HALRDT2F22DAQ54M334YSKD2XJCAXDXEZPDKGMOWKH7XELBAS6MAC
ADMKQQGCGVSHHIMVQ4XFRDCG544SBJCYALSKZV45CQQBZ4ACUH2AC
listAuctions :: ProjectId -> RangeQuery -> Limit -> DBM [Auction]
listAuctions pid rq (Limit limit) =
case rq of
(Before e) ->
pquery
auctionParser
[sql| SELECT project_id, initiator_id, created_at, name, description, raise_amount, start_time, end_time
FROM auctions
WHERE project_id = ?
AND end_time < ?
LIMIT ? |]
(pid ^. _ProjectId, C.fromThyme e, limit)
(During s e) ->
pquery
auctionParser
[sql| SELECT project_id, initiator_id, created_at, name, description, raise_amount, start_time, end_time
FROM auctions
WHERE project_id = ?
AND end_time >= ? AND end_time < ?
LIMIT ? |]
(pid ^. _ProjectId, C.fromThyme s, C.fromThyme e, limit)
(After s) ->
pquery
auctionParser
[sql| SELECT project_id, initiator_id, created_at, name, description, raise_amount, start_time, end_time
FROM auctions
WHERE project_id = ?
AND end_time >= ?
LIMIT ? |]
(pid ^. _ProjectId, C.fromThyme s, limit)
Always ->
pquery
auctionParser
[sql| SELECT project_id, initiator_id, created_at, name, description, raise_amount, start_time, end_time
FROM auctions
WHERE project_id = ?
LIMIT ? |]
(pid ^. _ProjectId, limit)
findEvents :: ProjectId -> UserId -> RangeQuery -> Word32 -> DBM [LogEntry]
findEvents (ProjectId pid) (UserId uid) rquery limit = do
findEvents :: ProjectId -> UserId -> RangeQuery -> Limit -> DBM [LogEntry]
findEvents (ProjectId pid) (UserId uid) rquery (Limit limit) = do
Description: (Describe migration here.)
Created: 2021-01-03 16:16:17.234201601 UTC
Depends: 2020-11-25_04-22-24_zcash-support 2016-10-29_20-54-44_auction-timestamps 2016-10-13_05-36-55_user-event-log
Apply: |
ALTER TABLE auctions ADD COLUMN name text NOT NULL;
ALTER TABLE auctions ADD COLUMN description text;