From c70c7db1c50b749de906ce56f18bacb586243488 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 28 Sep 2011 15:48:20 -0400 Subject: [PATCH] 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. --- classes/File_thumbnail.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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'), - ), + ) ); } -- 2.39.5