Browse Source

fix(db): Create the systag_by_objectid index for new installations

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/49680/head
Christoph Wurst 11 months ago
committed by backportbot[bot]
parent
commit
9e54aa5216
  1. 2
      core/Migrations/Version13000Date20170718121200.php

2
core/Migrations/Version13000Date20170718121200.php

@ -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')) {

Loading…
Cancel
Save