]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
apparently we need a primary key in every table. this fixes an error in the logs.
authorIan Denhardt <ian@zenhack.net>
Thu, 23 Dec 2010 21:26:21 +0000 (16:26 -0500)
committerIan Denhardt <ian@zenhack.net>
Thu, 23 Dec 2010 21:26:21 +0000 (16:26 -0500)
plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php

index deddd502aa0f3dc2f4ae931b0c2ab920326d5645..71bf33a220a142d806d7e66fd3a424560dc1e912 100644 (file)
@@ -63,7 +63,7 @@ class GNUsocialPhotosPlugin extends Plugin
     {
         $schema = Schema::get();
         $schema->ensureTable('GNUsocialPhoto',
-                                array(new ColumnDef('notice_id', 'int(11)', null, false),
+                                array(new ColumnDef('notice_id', 'int(11)', null, false, 'PRI'),
                                       new ColumnDef('album_id', 'int(11)', null, false),
                                       new ColumnDef('uri', 'varchar(512)', null, false),
                                       new ColumnDef('thumb_uri', 'varchar(512)', null, false)));