ALTER TABLE {$NAMESPACE}_pholio.pholio_image
  ADD UNIQUE KEY `keyPHID` (`phid`);