ipld-eth-server/db/migrations/1515613715_update_node_index.up.sql
2018-01-10 15:54:36 -06:00

9 lines
150 B
PL/PgSQL

BEGIN;
ALTER TABLE nodes
DROP CONSTRAINT node_uc;
ALTER TABLE nodes
ADD CONSTRAINT node_uc UNIQUE (genesis_block, network_id, node_id);
COMMIT;