Adds unique index on `(type, condition)`