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.
This commit is contained in:
Evan Prodromou 2011-09-28 15:48:20 -04:00
parent 8ca9f33f45
commit c70c7db1c5

View File

@ -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'),
),
)
);
}