mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 11:41:20 -04:00
fix(db): Create the systag_by_objectid index for new installations
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
f6eee85d20
commit
b4ffb8a4b5
1 changed files with 2 additions and 0 deletions
|
|
@ -756,6 +756,8 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
|
|||
$table->setPrimaryKey(['objecttype', 'objectid', 'systemtagid'], 'som_pk');
|
||||
// $table->addUniqueIndex(['objecttype', 'objectid', 'systemtagid'], 'mapping');
|
||||
$table->addIndex(['systemtagid', 'objecttype'], 'systag_by_tagid');
|
||||
// systag_by_objectid was added later and might be missing in older deployments
|
||||
$table->addIndex(['objectid'], 'systag_by_objectid');
|
||||
}
|
||||
|
||||
if (!$schema->hasTable('systemtag_group')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue