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
pull/58425/head
Julius Knorr 6 months ago committed by GitHub
commit c378bb4e9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      core/Migrations/Version13000Date20170718121200.php

@ -341,6 +341,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
// $table->addIndex(['userid'], 'property_index');
$table->addIndex(['userid', 'propertypath'], 'properties_path_index');
$table->addIndex(['propertypath'], 'properties_pathonly_index');
$table->addIndex(['propertyname', 'propertypath', 'userid'], 'properties_name_path_user');
} else {
$table = $schema->getTable('properties');
if ($table->hasColumn('propertytype')) {

Loading…
Cancel
Save