Skip to content

Commit c378bb4

Browse files
authored
Merge pull request #58236 from nextcloud/jtr/fix-db-missing-indices-at-install-time
fix(setup): add index properties_name_path_user by default on new installs
2 parents 42c0e5f + 57b0630 commit c378bb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/Migrations/Version13000Date20170718121200.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
341341
// $table->addIndex(['userid'], 'property_index');
342342
$table->addIndex(['userid', 'propertypath'], 'properties_path_index');
343343
$table->addIndex(['propertypath'], 'properties_pathonly_index');
344+
$table->addIndex(['propertyname', 'propertypath', 'userid'], 'properties_name_path_user');
344345
} else {
345346
$table = $schema->getTable('properties');
346347
if ($table->hasColumn('propertytype')) {

0 commit comments

Comments
 (0)