Apply taka's fix to faulty down migration

This commit is contained in:
Edvard 2019-01-24 10:35:52 +01:00
parent 8de6fc45e1
commit 4c87ef44b8

View File

@ -24,6 +24,8 @@ ALTER TABLE receipts
ALTER TABLE receipts ALTER TABLE receipts
ADD COLUMN transaction_id INT; ADD COLUMN transaction_id INT;
CREATE INDEX transaction_id_index ON receipts (transaction_id);
UPDATE receipts UPDATE receipts
SET transaction_id = ( SET transaction_id = (
SELECT id FROM transactions WHERE transactions.hash = receipts.tx_hash SELECT id FROM transactions WHERE transactions.hash = receipts.tx_hash