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
This commit is contained in:
Julius Knorr 2026-02-19 09:17:45 +01:00 committed by GitHub
commit c378bb4e9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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