ALTER TABLE {$NAMESPACE}_herald.herald_rule
  ADD UNIQUE KEY (phid);