apparently we need a primary key in every table. this fixes an error in the logs.

This commit is contained in:
Ian Denhardt 2010-12-23 16:26:21 -05:00
parent ce9f8eed27
commit 3a7e8e9d88

View 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)));