ipld-eth-server/db/migrations/1515613715_update_node_index.down.sql

10 lines
142 B
MySQL
Raw Normal View History

2018-01-10 21:54:36 +00:00
BEGIN;
ALTER TABLE nodes
DROP CONSTRAINT node_uc;
ALTER TABLE nodes
ADD CONSTRAINT node_uc UNIQUE (genesis_block, network_id);
COMMIT;