From: Evan Prodromou Date: Wed, 28 Sep 2011 19:48:20 +0000 (-0400) Subject: Remove unique key on file_thumbnail.url X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c70c7db1c50b749de906ce56f18bacb586243488;p=quix0rs-gnu-social.git Remove unique key on file_thumbnail.url We're getting "DB error: already exists" on thumbnails coming from embed.ly. We don't need this to be unique, so let's avoid that. --- diff --git a/classes/File_thumbnail.php b/classes/File_thumbnail.php index 064b454e2d..6b3c0b0255 100644 --- a/classes/File_thumbnail.php +++ b/classes/File_thumbnail.php @@ -56,10 +56,7 @@ class File_thumbnail extends Managed_DataObject 'primary key' => array('file_id'), 'foreign keys' => array( 'file_thumbnail_file_id_fkey' => array('file', array('file_id' => 'id')), - ), - 'unique keys' => array( - 'file_thumbnail_url_key' => array('url'), - ), + ) ); }