forked from GNUsocial/gnu-social
Sitemap plugin no longer forces an index on user.created
This commit is contained in:
parent
0b7abf1595
commit
7c1d73ed3d
@ -196,12 +196,6 @@ class SitemapPlugin extends Plugin
|
|||||||
null, false),
|
null, false),
|
||||||
new ColumnDef('modified', 'timestamp')));
|
new ColumnDef('modified', 'timestamp')));
|
||||||
|
|
||||||
$userCreated = $schema->getColumnDef('user', 'created');
|
|
||||||
|
|
||||||
if (empty($userCreated) || $userCreated->key != 'MUL') {
|
|
||||||
$schema->createIndex('user', 'created');
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user