This commit is contained in:
Teemu Patja 2017-05-31 10:02:07 +03:00
parent f171259ed4
commit c5cc94fd81
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 8 additions and 6 deletions

View File

@ -164,12 +164,14 @@ WHERE issue_id = :issue_id;
-- :name list-pending-deployments :? :*
-- :doc retrieves pending transaction ids
SELECT
issue_id,
transaction_hash,
owner_address
FROM issues
WHERE contract_address IS NULL
AND issues.transaction_hash IS NOT NULL;
i.issue_id as issue_id,
i.transaction_hash as transaction_hash,
u.address as owner_address
FROM issues i, users u, repositories r
WHERE r.user_id = u.id
AND i.repo_id = r.repo_id
AND i.contract_address IS NULL
AND i.transaction_hash IS NOT NULL;
-- Pull Requests -------------------------------------------------------------------