Skip to content

Commit

Permalink
fix(dav): add missing database index for dav_shares
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Jun 26, 2024
1 parent 344f8c8 commit 7f37143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
use OCA\DAV\Events\SubscriptionCreatedEvent;
use OCA\DAV\Events\SubscriptionDeletedEvent;
use OCA\DAV\HookManager;
use OCA\DAV\Listener\AddMissingIndicesListener;
use OCA\DAV\Listener\ActivityUpdaterListener;
use OCA\DAV\Listener\AddMissingIndicesListener;
use OCA\DAV\Listener\AddressbookListener;
use OCA\DAV\Listener\BirthdayListener;
use OCA\DAV\Listener\CalendarContactInteractionListener;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Migration/Version1004Date20170825134824.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
]);
$table->setPrimaryKey(['id']);
$table->addUniqueIndex(['principaluri', 'resourceid', 'type', 'publicuri'], 'dav_shares_index');
// modified on 2024-6-21 to add performance improving indices on new instances
// modified on 2024-6-21 to add performance improving indices on new instances
$table->addIndex(['resourceid', 'type'], 'dav_shares_resourceid_type');
$table->addIndex(['resourceid', 'access'], 'dav_shares_resourceid_access');
}
Expand Down

0 comments on commit 7f37143

Please sign in to comment.