Merge pull request #49677 from nextcloud/fix/db/systag-by-objectid-index-new-installation

fix(db): Create the systag_by_objectid index for new installations
This commit is contained in:
Christoph Wurst 2024-12-05 19:17:54 +01:00 committed by GitHub
commit bca864d76d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -730,6 +730,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')) {