Skip to content

Commit

Permalink
Merge pull request #49677 from nextcloud/fix/db/systag-by-objectid-in…
Browse files Browse the repository at this point in the history
…dex-new-installation

fix(db): Create the systag_by_objectid index for new installations
  • Loading branch information
ChristophWurst authored Dec 5, 2024
2 parents 41c5364 + 73079a6 commit bca864d
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 @@ -730,6 +730,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 bca864d

Please sign in to comment.