]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove unique key on file_thumbnail.url
authorEvan Prodromou <evan@status.net>
Wed, 28 Sep 2011 19:48:20 +0000 (15:48 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 28 Sep 2011 19:48:20 +0000 (15:48 -0400)
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

index 064b454e2dd2a314d390d01b30883b858b6ee72c..6b3c0b0255690279d980a49d98d1aa6483963c0d 100644 (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'),
-            ),
+            )
         );
     }