|
|
|
@ -44,7 +44,6 @@ use OC\Authentication\Listeners\UserDeletedWebAuthnCleanupListener;
|
|
|
|
|
use OC\Authentication\Notifications\Notifier as AuthenticationNotifier;
|
|
|
|
|
use OC\Core\Listener\BeforeTemplateRenderedListener;
|
|
|
|
|
use OC\Core\Notification\CoreNotifier;
|
|
|
|
|
use OC\SystemConfig;
|
|
|
|
|
use OC\TagManager;
|
|
|
|
|
use OCP\AppFramework\App;
|
|
|
|
|
use OCP\AppFramework\Http\Events\BeforeLoginTemplateRenderedEvent;
|
|
|
|
@ -82,7 +81,6 @@ class Application extends App {
|
|
|
|
|
$notificationManager->registerNotifierService(AuthenticationNotifier::class);
|
|
|
|
|
|
|
|
|
|
$eventDispatcher->addListener(AddMissingIndicesEvent::class, function (AddMissingIndicesEvent $event) {
|
|
|
|
|
$dbType = $this->getContainer()->get(SystemConfig::class)->getSystemValue('dbtype', 'sqlite');
|
|
|
|
|
$event->addMissingIndex(
|
|
|
|
|
'share',
|
|
|
|
|
'share_with_index',
|
|
|
|
@ -239,15 +237,6 @@ class Application extends App {
|
|
|
|
|
['appid', 'configkey']
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if ($dbType !== 'oci') {
|
|
|
|
|
$event->addMissingIndex(
|
|
|
|
|
'preferences',
|
|
|
|
|
'preferences_configvalue',
|
|
|
|
|
['configvalue'],
|
|
|
|
|
['lengths' => [80]]
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$event->addMissingIndex(
|
|
|
|
|
'mounts',
|
|
|
|
|
'mounts_class_index',
|
|
|
|
|