From 3a7e8e9d8853a55e003ebaa5b94639fbebe7562c Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Thu, 23 Dec 2010 16:26:21 -0500 Subject: [PATCH] apparently we need a primary key in every table. this fixes an error in the logs. --- plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index deddd502aa..71bf33a220 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -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))); -- 2.39.2