From 7961a0b446c1f034f775d0c715a1692ca08646de Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 3 Mar 2020 13:10:41 +0100 Subject: [PATCH] Add indices to original DAV migration Signed-off-by: Georg Ehrke --- apps/dav/lib/Migration/Version1004Date20170825134824.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/dav/lib/Migration/Version1004Date20170825134824.php b/apps/dav/lib/Migration/Version1004Date20170825134824.php index 81107a7c750..10e6028ba1a 100644 --- a/apps/dav/lib/Migration/Version1004Date20170825134824.php +++ b/apps/dav/lib/Migration/Version1004Date20170825134824.php @@ -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')) {