Merge pull request #25168 from nextcloud/fix/cards_abiduri

Add cards_abiduri index on install
This commit is contained in:
Morris Jobke 2021-01-18 13:35:20 +01:00 committed by GitHub
commit e9b5805e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class Version1004Date20170924124212 extends SimpleMigrationStep {
$table = $schema->getTable('cards'); $table = $schema->getTable('cards');
$table->addIndex(['addressbookid'], 'cards_abid'); $table->addIndex(['addressbookid'], 'cards_abid');
$table->addIndex(['addressbookid', 'uri'], 'cards_abiduri');
$table = $schema->getTable('cards_properties'); $table = $schema->getTable('cards_properties');
$table->addIndex(['addressbookid'], 'cards_prop_abid'); $table->addIndex(['addressbookid'], 'cards_prop_abid');