Add indices to original DAV migration

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-03-03 13:10:41 +01:00
parent aaff6a0242
commit 7961a0b446
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 2 additions and 0 deletions

View File

@ -369,6 +369,7 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
'unsigned' => true,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['principaluri'], 'schedulobj_principuri_index');
}
if (!$schema->hasTable('cards_properties')) {
@ -444,6 +445,7 @@ class Version1004Date20170825134824 extends SimpleMigrationStep {
$table->addIndex(['objectid'], 'calendarobject_index');
$table->addIndex(['name'], 'calendarobject_name_index');
$table->addIndex(['value'], 'calendarobject_value_index');
$table->addIndex(['calendarid', 'calendartype'], 'calendarobject_calid_index');
}
if (!$schema->hasTable('dav_shares')) {