ipld-eth-server/db/migrations/1516050071_add_log_fk_constraint.down.sql

12 lines
180 B
MySQL
Raw Normal View History

2018-01-15 21:27:45 +00:00
BEGIN;
ALTER TABLE logs
DROP CONSTRAINT receipts_fk;
ALTER TABLE logs
DROP COLUMN receipt_id;
ALTER TABLE logs
ADD CONSTRAINT log_uc UNIQUE (block_number, index);
2018-01-15 21:27:45 +00:00
COMMIT;