Skip to content

Commit

Permalink
Merge pull request #49679 from nextcloud/backport/49677/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(db): Create the systag_by_objectid index for new installations
  • Loading branch information
nickvergessen authored Dec 5, 2024
2 parents f6eee85 + b4ffb8a commit 3ab7ad2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/Migrations/Version13000Date20170718121200.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,8 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
$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')) {
Expand Down

0 comments on commit 3ab7ad2

Please sign in to comment.