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