Merge branch 'staging' into pub_merge

This commit is contained in:
Ian Norden
2019-01-24 09:47:12 -06:00
committed by GitHub
98 changed files with 1054 additions and 652 deletions
@@ -3,6 +3,8 @@ BEGIN;
ALTER TABLE receipts
ADD COLUMN transaction_id INT;
CREATE INDEX transaction_id_index ON receipts (transaction_id);
UPDATE receipts
SET transaction_id = (
SELECT id FROM transactions WHERE transactions.hash = receipts.tx_hash
@@ -20,4 +22,4 @@ ON DELETE CASCADE;
ALTER TABLE receipts
DROP COLUMN block_id;
COMMIT;
COMMIT;