relay/migrations/2020-03-25-214244_make-nodes-listener-id-unique/up.sql

3 lines
103 B
SQL

-- Your SQL goes here
ALTER TABLE nodes ADD CONSTRAINT nodes_listener_ids_unique UNIQUE (listener_id);