bring back transaction_id index when adding back transaction_id column
This commit is contained in:
parent
005576572f
commit
b6baa106cc
@ -3,6 +3,8 @@ BEGIN;
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user