]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add indices to original DAV migration
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 3 Mar 2020 12:10:41 +0000 (13:10 +0100)
committerGeorg Ehrke <developer@georgehrke.com>
Tue, 3 Mar 2020 12:10:41 +0000 (13:10 +0100)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/dav/lib/Migration/Version1004Date20170825134824.php

index 81107a7c7508d6253610be83289ea6e2f21715a1..10e6028ba1a10a2c5d4ace9221d3d67f4b776dcc 100644 (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')) {