@@ -41,59 +41,59 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | class AddMissingIndices extends Command { |
| 43 | 43 | |
| 44 | - /** @var IDBConnection */ |
|
| 45 | - private $connection; |
|
| 46 | - |
|
| 47 | - /** @var EventDispatcherInterface */ |
|
| 48 | - private $dispatcher; |
|
| 49 | - |
|
| 50 | - public function __construct(IDBConnection $connection, EventDispatcherInterface $dispatcher) { |
|
| 51 | - parent::__construct(); |
|
| 52 | - |
|
| 53 | - $this->connection = $connection; |
|
| 54 | - $this->dispatcher = $dispatcher; |
|
| 55 | - } |
|
| 56 | - |
|
| 57 | - protected function configure() { |
|
| 58 | - $this |
|
| 59 | - ->setName('db:add-missing-indices') |
|
| 60 | - ->setDescription('Add missing indices to the database tables'); |
|
| 61 | - } |
|
| 62 | - |
|
| 63 | - protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 64 | - $this->addShareTableIndicies($output); |
|
| 65 | - |
|
| 66 | - // Dispatch event so apps can also update indexes if needed |
|
| 67 | - $event = new GenericEvent($output); |
|
| 68 | - $this->dispatcher->dispatch(IDBConnection::ADD_MISSING_INDEXES_EVENT, $event); |
|
| 69 | - } |
|
| 70 | - |
|
| 71 | - /** |
|
| 72 | - * add missing indices to the share table |
|
| 73 | - * |
|
| 74 | - * @param OutputInterface $output |
|
| 75 | - * @throws \Doctrine\DBAL\Schema\SchemaException |
|
| 76 | - */ |
|
| 77 | - private function addShareTableIndicies(OutputInterface $output) { |
|
| 78 | - |
|
| 79 | - $output->writeln('<info>Check indices of the share table.</info>'); |
|
| 80 | - |
|
| 81 | - $schema = new SchemaWrapper($this->connection); |
|
| 82 | - $updated = false; |
|
| 83 | - |
|
| 84 | - if ($schema->hasTable('share')) { |
|
| 85 | - $table = $schema->getTable('share'); |
|
| 86 | - if (!$table->hasIndex('share_with_index')) { |
|
| 87 | - $output->writeln('<info>Adding additional index to the share table, this can take some time...</info>'); |
|
| 88 | - $table->addIndex(['share_with'], 'share_with_index'); |
|
| 89 | - $this->connection->migrateToSchema($schema->getWrappedSchema()); |
|
| 90 | - $updated = true; |
|
| 91 | - $output->writeln('<info>Share table updated successfully.</info>'); |
|
| 92 | - } |
|
| 93 | - } |
|
| 94 | - |
|
| 95 | - if (!$updated) { |
|
| 96 | - $output->writeln('<info>Done.</info>'); |
|
| 97 | - } |
|
| 98 | - } |
|
| 44 | + /** @var IDBConnection */ |
|
| 45 | + private $connection; |
|
| 46 | + |
|
| 47 | + /** @var EventDispatcherInterface */ |
|
| 48 | + private $dispatcher; |
|
| 49 | + |
|
| 50 | + public function __construct(IDBConnection $connection, EventDispatcherInterface $dispatcher) { |
|
| 51 | + parent::__construct(); |
|
| 52 | + |
|
| 53 | + $this->connection = $connection; |
|
| 54 | + $this->dispatcher = $dispatcher; |
|
| 55 | + } |
|
| 56 | + |
|
| 57 | + protected function configure() { |
|
| 58 | + $this |
|
| 59 | + ->setName('db:add-missing-indices') |
|
| 60 | + ->setDescription('Add missing indices to the database tables'); |
|
| 61 | + } |
|
| 62 | + |
|
| 63 | + protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 64 | + $this->addShareTableIndicies($output); |
|
| 65 | + |
|
| 66 | + // Dispatch event so apps can also update indexes if needed |
|
| 67 | + $event = new GenericEvent($output); |
|
| 68 | + $this->dispatcher->dispatch(IDBConnection::ADD_MISSING_INDEXES_EVENT, $event); |
|
| 69 | + } |
|
| 70 | + |
|
| 71 | + /** |
|
| 72 | + * add missing indices to the share table |
|
| 73 | + * |
|
| 74 | + * @param OutputInterface $output |
|
| 75 | + * @throws \Doctrine\DBAL\Schema\SchemaException |
|
| 76 | + */ |
|
| 77 | + private function addShareTableIndicies(OutputInterface $output) { |
|
| 78 | + |
|
| 79 | + $output->writeln('<info>Check indices of the share table.</info>'); |
|
| 80 | + |
|
| 81 | + $schema = new SchemaWrapper($this->connection); |
|
| 82 | + $updated = false; |
|
| 83 | + |
|
| 84 | + if ($schema->hasTable('share')) { |
|
| 85 | + $table = $schema->getTable('share'); |
|
| 86 | + if (!$table->hasIndex('share_with_index')) { |
|
| 87 | + $output->writeln('<info>Adding additional index to the share table, this can take some time...</info>'); |
|
| 88 | + $table->addIndex(['share_with'], 'share_with_index'); |
|
| 89 | + $this->connection->migrateToSchema($schema->getWrappedSchema()); |
|
| 90 | + $updated = true; |
|
| 91 | + $output->writeln('<info>Share table updated successfully.</info>'); |
|
| 92 | + } |
|
| 93 | + } |
|
| 94 | + |
|
| 95 | + if (!$updated) { |
|
| 96 | + $output->writeln('<info>Done.</info>'); |
|
| 97 | + } |
|
| 98 | + } |
|
| 99 | 99 | } |
@@ -43,123 +43,123 @@ |
||
| 43 | 43 | $application->add(new OC\Core\Command\App\CheckCode()); |
| 44 | 44 | $application->add(new OC\Core\Command\L10n\CreateJs()); |
| 45 | 45 | $application->add(new \OC\Core\Command\Integrity\SignApp( |
| 46 | - \OC::$server->getIntegrityCodeChecker(), |
|
| 47 | - new \OC\IntegrityCheck\Helpers\FileAccessHelper(), |
|
| 48 | - \OC::$server->getURLGenerator() |
|
| 46 | + \OC::$server->getIntegrityCodeChecker(), |
|
| 47 | + new \OC\IntegrityCheck\Helpers\FileAccessHelper(), |
|
| 48 | + \OC::$server->getURLGenerator() |
|
| 49 | 49 | )); |
| 50 | 50 | $application->add(new \OC\Core\Command\Integrity\SignCore( |
| 51 | - \OC::$server->getIntegrityCodeChecker(), |
|
| 52 | - new \OC\IntegrityCheck\Helpers\FileAccessHelper() |
|
| 51 | + \OC::$server->getIntegrityCodeChecker(), |
|
| 52 | + new \OC\IntegrityCheck\Helpers\FileAccessHelper() |
|
| 53 | 53 | )); |
| 54 | 54 | $application->add(new \OC\Core\Command\Integrity\CheckApp( |
| 55 | - \OC::$server->getIntegrityCodeChecker() |
|
| 55 | + \OC::$server->getIntegrityCodeChecker() |
|
| 56 | 56 | )); |
| 57 | 57 | $application->add(new \OC\Core\Command\Integrity\CheckCore( |
| 58 | - \OC::$server->getIntegrityCodeChecker() |
|
| 58 | + \OC::$server->getIntegrityCodeChecker() |
|
| 59 | 59 | )); |
| 60 | 60 | |
| 61 | 61 | |
| 62 | 62 | if (\OC::$server->getConfig()->getSystemValue('installed', false)) { |
| 63 | - $application->add(new OC\Core\Command\App\Disable(\OC::$server->getAppManager())); |
|
| 64 | - $application->add(new OC\Core\Command\App\Enable(\OC::$server->getAppManager())); |
|
| 65 | - $application->add(new OC\Core\Command\App\Install()); |
|
| 66 | - $application->add(new OC\Core\Command\App\GetPath()); |
|
| 67 | - $application->add(new OC\Core\Command\App\ListApps(\OC::$server->getAppManager())); |
|
| 63 | + $application->add(new OC\Core\Command\App\Disable(\OC::$server->getAppManager())); |
|
| 64 | + $application->add(new OC\Core\Command\App\Enable(\OC::$server->getAppManager())); |
|
| 65 | + $application->add(new OC\Core\Command\App\Install()); |
|
| 66 | + $application->add(new OC\Core\Command\App\GetPath()); |
|
| 67 | + $application->add(new OC\Core\Command\App\ListApps(\OC::$server->getAppManager())); |
|
| 68 | 68 | |
| 69 | - $application->add(new OC\Core\Command\TwoFactorAuth\Enable( |
|
| 70 | - \OC::$server->getTwoFactorAuthManager(), \OC::$server->getUserManager() |
|
| 71 | - )); |
|
| 72 | - $application->add(new OC\Core\Command\TwoFactorAuth\Disable( |
|
| 73 | - \OC::$server->getTwoFactorAuthManager(), \OC::$server->getUserManager() |
|
| 74 | - )); |
|
| 69 | + $application->add(new OC\Core\Command\TwoFactorAuth\Enable( |
|
| 70 | + \OC::$server->getTwoFactorAuthManager(), \OC::$server->getUserManager() |
|
| 71 | + )); |
|
| 72 | + $application->add(new OC\Core\Command\TwoFactorAuth\Disable( |
|
| 73 | + \OC::$server->getTwoFactorAuthManager(), \OC::$server->getUserManager() |
|
| 74 | + )); |
|
| 75 | 75 | |
| 76 | - $application->add(new OC\Core\Command\Background\Cron(\OC::$server->getConfig())); |
|
| 77 | - $application->add(new OC\Core\Command\Background\WebCron(\OC::$server->getConfig())); |
|
| 78 | - $application->add(new OC\Core\Command\Background\Ajax(\OC::$server->getConfig())); |
|
| 76 | + $application->add(new OC\Core\Command\Background\Cron(\OC::$server->getConfig())); |
|
| 77 | + $application->add(new OC\Core\Command\Background\WebCron(\OC::$server->getConfig())); |
|
| 78 | + $application->add(new OC\Core\Command\Background\Ajax(\OC::$server->getConfig())); |
|
| 79 | 79 | |
| 80 | - $application->add(new OC\Core\Command\Config\App\DeleteConfig(\OC::$server->getConfig())); |
|
| 81 | - $application->add(new OC\Core\Command\Config\App\GetConfig(\OC::$server->getConfig())); |
|
| 82 | - $application->add(new OC\Core\Command\Config\App\SetConfig(\OC::$server->getConfig())); |
|
| 83 | - $application->add(new OC\Core\Command\Config\Import(\OC::$server->getConfig())); |
|
| 84 | - $application->add(new OC\Core\Command\Config\ListConfigs(\OC::$server->getSystemConfig(), \OC::$server->getAppConfig())); |
|
| 85 | - $application->add(new OC\Core\Command\Config\System\DeleteConfig(\OC::$server->getSystemConfig())); |
|
| 86 | - $application->add(new OC\Core\Command\Config\System\GetConfig(\OC::$server->getSystemConfig())); |
|
| 87 | - $application->add(new OC\Core\Command\Config\System\SetConfig(\OC::$server->getSystemConfig())); |
|
| 80 | + $application->add(new OC\Core\Command\Config\App\DeleteConfig(\OC::$server->getConfig())); |
|
| 81 | + $application->add(new OC\Core\Command\Config\App\GetConfig(\OC::$server->getConfig())); |
|
| 82 | + $application->add(new OC\Core\Command\Config\App\SetConfig(\OC::$server->getConfig())); |
|
| 83 | + $application->add(new OC\Core\Command\Config\Import(\OC::$server->getConfig())); |
|
| 84 | + $application->add(new OC\Core\Command\Config\ListConfigs(\OC::$server->getSystemConfig(), \OC::$server->getAppConfig())); |
|
| 85 | + $application->add(new OC\Core\Command\Config\System\DeleteConfig(\OC::$server->getSystemConfig())); |
|
| 86 | + $application->add(new OC\Core\Command\Config\System\GetConfig(\OC::$server->getSystemConfig())); |
|
| 87 | + $application->add(new OC\Core\Command\Config\System\SetConfig(\OC::$server->getSystemConfig())); |
|
| 88 | 88 | |
| 89 | - $application->add(new OC\Core\Command\Db\ConvertType(\OC::$server->getConfig(), new \OC\DB\ConnectionFactory(\OC::$server->getSystemConfig()))); |
|
| 90 | - $application->add(new OC\Core\Command\Db\ConvertMysqlToMB4(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection(), \OC::$server->getURLGenerator(), \OC::$server->getLogger())); |
|
| 91 | - $application->add(new OC\Core\Command\Db\ConvertFilecacheBigInt(\OC::$server->getDatabaseConnection())); |
|
| 92 | - $application->add(new OC\Core\Command\Db\AddMissingIndices(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher())); |
|
| 93 | - $application->add(new OC\Core\Command\Db\Migrations\StatusCommand(\OC::$server->getDatabaseConnection())); |
|
| 94 | - $application->add(new OC\Core\Command\Db\Migrations\MigrateCommand(\OC::$server->getDatabaseConnection())); |
|
| 95 | - $application->add(new OC\Core\Command\Db\Migrations\GenerateCommand(\OC::$server->getDatabaseConnection(), \OC::$server->getAppManager())); |
|
| 96 | - $application->add(new OC\Core\Command\Db\Migrations\GenerateFromSchemaFileCommand(\OC::$server->getConfig(), \OC::$server->getAppManager(), \OC::$server->getDatabaseConnection())); |
|
| 97 | - $application->add(new OC\Core\Command\Db\Migrations\ExecuteCommand(\OC::$server->getDatabaseConnection(), \OC::$server->getAppManager(), \OC::$server->getConfig())); |
|
| 89 | + $application->add(new OC\Core\Command\Db\ConvertType(\OC::$server->getConfig(), new \OC\DB\ConnectionFactory(\OC::$server->getSystemConfig()))); |
|
| 90 | + $application->add(new OC\Core\Command\Db\ConvertMysqlToMB4(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection(), \OC::$server->getURLGenerator(), \OC::$server->getLogger())); |
|
| 91 | + $application->add(new OC\Core\Command\Db\ConvertFilecacheBigInt(\OC::$server->getDatabaseConnection())); |
|
| 92 | + $application->add(new OC\Core\Command\Db\AddMissingIndices(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher())); |
|
| 93 | + $application->add(new OC\Core\Command\Db\Migrations\StatusCommand(\OC::$server->getDatabaseConnection())); |
|
| 94 | + $application->add(new OC\Core\Command\Db\Migrations\MigrateCommand(\OC::$server->getDatabaseConnection())); |
|
| 95 | + $application->add(new OC\Core\Command\Db\Migrations\GenerateCommand(\OC::$server->getDatabaseConnection(), \OC::$server->getAppManager())); |
|
| 96 | + $application->add(new OC\Core\Command\Db\Migrations\GenerateFromSchemaFileCommand(\OC::$server->getConfig(), \OC::$server->getAppManager(), \OC::$server->getDatabaseConnection())); |
|
| 97 | + $application->add(new OC\Core\Command\Db\Migrations\ExecuteCommand(\OC::$server->getDatabaseConnection(), \OC::$server->getAppManager(), \OC::$server->getConfig())); |
|
| 98 | 98 | |
| 99 | - $application->add(new OC\Core\Command\Encryption\Disable(\OC::$server->getConfig())); |
|
| 100 | - $application->add(new OC\Core\Command\Encryption\Enable(\OC::$server->getConfig(), \OC::$server->getEncryptionManager())); |
|
| 101 | - $application->add(new OC\Core\Command\Encryption\ListModules(\OC::$server->getEncryptionManager())); |
|
| 102 | - $application->add(new OC\Core\Command\Encryption\SetDefaultModule(\OC::$server->getEncryptionManager())); |
|
| 103 | - $application->add(new OC\Core\Command\Encryption\Status(\OC::$server->getEncryptionManager())); |
|
| 104 | - $application->add(new OC\Core\Command\Encryption\EncryptAll(\OC::$server->getEncryptionManager(), \OC::$server->getAppManager(), \OC::$server->getConfig(), new \Symfony\Component\Console\Helper\QuestionHelper())); |
|
| 105 | - $application->add(new OC\Core\Command\Encryption\DecryptAll( |
|
| 106 | - \OC::$server->getEncryptionManager(), |
|
| 107 | - \OC::$server->getAppManager(), |
|
| 108 | - \OC::$server->getConfig(), |
|
| 109 | - new \OC\Encryption\DecryptAll(\OC::$server->getEncryptionManager(), \OC::$server->getUserManager(), new \OC\Files\View()), |
|
| 110 | - new \Symfony\Component\Console\Helper\QuestionHelper()) |
|
| 111 | - ); |
|
| 99 | + $application->add(new OC\Core\Command\Encryption\Disable(\OC::$server->getConfig())); |
|
| 100 | + $application->add(new OC\Core\Command\Encryption\Enable(\OC::$server->getConfig(), \OC::$server->getEncryptionManager())); |
|
| 101 | + $application->add(new OC\Core\Command\Encryption\ListModules(\OC::$server->getEncryptionManager())); |
|
| 102 | + $application->add(new OC\Core\Command\Encryption\SetDefaultModule(\OC::$server->getEncryptionManager())); |
|
| 103 | + $application->add(new OC\Core\Command\Encryption\Status(\OC::$server->getEncryptionManager())); |
|
| 104 | + $application->add(new OC\Core\Command\Encryption\EncryptAll(\OC::$server->getEncryptionManager(), \OC::$server->getAppManager(), \OC::$server->getConfig(), new \Symfony\Component\Console\Helper\QuestionHelper())); |
|
| 105 | + $application->add(new OC\Core\Command\Encryption\DecryptAll( |
|
| 106 | + \OC::$server->getEncryptionManager(), |
|
| 107 | + \OC::$server->getAppManager(), |
|
| 108 | + \OC::$server->getConfig(), |
|
| 109 | + new \OC\Encryption\DecryptAll(\OC::$server->getEncryptionManager(), \OC::$server->getUserManager(), new \OC\Files\View()), |
|
| 110 | + new \Symfony\Component\Console\Helper\QuestionHelper()) |
|
| 111 | + ); |
|
| 112 | 112 | |
| 113 | - $application->add(new OC\Core\Command\Log\Manage(\OC::$server->getConfig())); |
|
| 114 | - $application->add(new OC\Core\Command\Log\File(\OC::$server->getConfig())); |
|
| 113 | + $application->add(new OC\Core\Command\Log\Manage(\OC::$server->getConfig())); |
|
| 114 | + $application->add(new OC\Core\Command\Log\File(\OC::$server->getConfig())); |
|
| 115 | 115 | |
| 116 | - $view = new \OC\Files\View(); |
|
| 117 | - $util = new \OC\Encryption\Util( |
|
| 118 | - $view, |
|
| 119 | - \OC::$server->getUserManager(), |
|
| 120 | - \OC::$server->getGroupManager(), |
|
| 121 | - \OC::$server->getConfig() |
|
| 122 | - ); |
|
| 123 | - $application->add(new OC\Core\Command\Encryption\ChangeKeyStorageRoot( |
|
| 124 | - $view, |
|
| 125 | - \OC::$server->getUserManager(), |
|
| 126 | - \OC::$server->getConfig(), |
|
| 127 | - $util, |
|
| 128 | - new \Symfony\Component\Console\Helper\QuestionHelper() |
|
| 129 | - ) |
|
| 130 | - ); |
|
| 131 | - $application->add(new OC\Core\Command\Encryption\ShowKeyStorageRoot($util)); |
|
| 116 | + $view = new \OC\Files\View(); |
|
| 117 | + $util = new \OC\Encryption\Util( |
|
| 118 | + $view, |
|
| 119 | + \OC::$server->getUserManager(), |
|
| 120 | + \OC::$server->getGroupManager(), |
|
| 121 | + \OC::$server->getConfig() |
|
| 122 | + ); |
|
| 123 | + $application->add(new OC\Core\Command\Encryption\ChangeKeyStorageRoot( |
|
| 124 | + $view, |
|
| 125 | + \OC::$server->getUserManager(), |
|
| 126 | + \OC::$server->getConfig(), |
|
| 127 | + $util, |
|
| 128 | + new \Symfony\Component\Console\Helper\QuestionHelper() |
|
| 129 | + ) |
|
| 130 | + ); |
|
| 131 | + $application->add(new OC\Core\Command\Encryption\ShowKeyStorageRoot($util)); |
|
| 132 | 132 | |
| 133 | - $application->add(new OC\Core\Command\Maintenance\DataFingerprint(\OC::$server->getConfig(), new \OC\AppFramework\Utility\TimeFactory())); |
|
| 134 | - $application->add(new OC\Core\Command\Maintenance\Mimetype\UpdateDB(\OC::$server->getMimeTypeDetector(), \OC::$server->getMimeTypeLoader())); |
|
| 135 | - $application->add(new OC\Core\Command\Maintenance\Mimetype\UpdateJS(\OC::$server->getMimeTypeDetector())); |
|
| 136 | - $application->add(new OC\Core\Command\Maintenance\Mode(\OC::$server->getConfig())); |
|
| 137 | - $application->add(new OC\Core\Command\Maintenance\UpdateHtaccess()); |
|
| 138 | - $application->add(new OC\Core\Command\Maintenance\UpdateTheme(\OC::$server->getMimeTypeDetector(), \OC::$server->getMemCacheFactory())); |
|
| 133 | + $application->add(new OC\Core\Command\Maintenance\DataFingerprint(\OC::$server->getConfig(), new \OC\AppFramework\Utility\TimeFactory())); |
|
| 134 | + $application->add(new OC\Core\Command\Maintenance\Mimetype\UpdateDB(\OC::$server->getMimeTypeDetector(), \OC::$server->getMimeTypeLoader())); |
|
| 135 | + $application->add(new OC\Core\Command\Maintenance\Mimetype\UpdateJS(\OC::$server->getMimeTypeDetector())); |
|
| 136 | + $application->add(new OC\Core\Command\Maintenance\Mode(\OC::$server->getConfig())); |
|
| 137 | + $application->add(new OC\Core\Command\Maintenance\UpdateHtaccess()); |
|
| 138 | + $application->add(new OC\Core\Command\Maintenance\UpdateTheme(\OC::$server->getMimeTypeDetector(), \OC::$server->getMemCacheFactory())); |
|
| 139 | 139 | |
| 140 | - $application->add(new OC\Core\Command\Upgrade(\OC::$server->getConfig(), \OC::$server->getLogger(), \OC::$server->query(\OC\Installer::class))); |
|
| 141 | - $application->add(new OC\Core\Command\Maintenance\Repair( |
|
| 142 | - new \OC\Repair(\OC\Repair::getRepairSteps(), \OC::$server->getEventDispatcher()), \OC::$server->getConfig(), |
|
| 143 | - \OC::$server->getEventDispatcher(), \OC::$server->getAppManager())); |
|
| 140 | + $application->add(new OC\Core\Command\Upgrade(\OC::$server->getConfig(), \OC::$server->getLogger(), \OC::$server->query(\OC\Installer::class))); |
|
| 141 | + $application->add(new OC\Core\Command\Maintenance\Repair( |
|
| 142 | + new \OC\Repair(\OC\Repair::getRepairSteps(), \OC::$server->getEventDispatcher()), \OC::$server->getConfig(), |
|
| 143 | + \OC::$server->getEventDispatcher(), \OC::$server->getAppManager())); |
|
| 144 | 144 | |
| 145 | - $application->add(new OC\Core\Command\User\Add(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 146 | - $application->add(new OC\Core\Command\User\Delete(\OC::$server->getUserManager())); |
|
| 147 | - $application->add(new OC\Core\Command\User\Disable(\OC::$server->getUserManager())); |
|
| 148 | - $application->add(new OC\Core\Command\User\Enable(\OC::$server->getUserManager())); |
|
| 149 | - $application->add(new OC\Core\Command\User\LastSeen(\OC::$server->getUserManager())); |
|
| 150 | - $application->add(new OC\Core\Command\User\Report(\OC::$server->getUserManager())); |
|
| 151 | - $application->add(new OC\Core\Command\User\ResetPassword(\OC::$server->getUserManager())); |
|
| 152 | - $application->add(new OC\Core\Command\User\Setting(\OC::$server->getUserManager(), \OC::$server->getConfig(), \OC::$server->getDatabaseConnection())); |
|
| 153 | - $application->add(new OC\Core\Command\User\ListCommand(\OC::$server->getUserManager())); |
|
| 154 | - $application->add(new OC\Core\Command\User\Info(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 145 | + $application->add(new OC\Core\Command\User\Add(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 146 | + $application->add(new OC\Core\Command\User\Delete(\OC::$server->getUserManager())); |
|
| 147 | + $application->add(new OC\Core\Command\User\Disable(\OC::$server->getUserManager())); |
|
| 148 | + $application->add(new OC\Core\Command\User\Enable(\OC::$server->getUserManager())); |
|
| 149 | + $application->add(new OC\Core\Command\User\LastSeen(\OC::$server->getUserManager())); |
|
| 150 | + $application->add(new OC\Core\Command\User\Report(\OC::$server->getUserManager())); |
|
| 151 | + $application->add(new OC\Core\Command\User\ResetPassword(\OC::$server->getUserManager())); |
|
| 152 | + $application->add(new OC\Core\Command\User\Setting(\OC::$server->getUserManager(), \OC::$server->getConfig(), \OC::$server->getDatabaseConnection())); |
|
| 153 | + $application->add(new OC\Core\Command\User\ListCommand(\OC::$server->getUserManager())); |
|
| 154 | + $application->add(new OC\Core\Command\User\Info(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 155 | 155 | |
| 156 | - $application->add(new OC\Core\Command\Group\ListCommand(\OC::$server->getGroupManager())); |
|
| 157 | - $application->add(new OC\Core\Command\Group\AddUser(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 158 | - $application->add(new OC\Core\Command\Group\RemoveUser(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 156 | + $application->add(new OC\Core\Command\Group\ListCommand(\OC::$server->getGroupManager())); |
|
| 157 | + $application->add(new OC\Core\Command\Group\AddUser(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 158 | + $application->add(new OC\Core\Command\Group\RemoveUser(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); |
|
| 159 | 159 | |
| 160 | - $application->add(new OC\Core\Command\Security\ListCertificates(\OC::$server->getCertificateManager(null), \OC::$server->getL10N('core'))); |
|
| 161 | - $application->add(new OC\Core\Command\Security\ImportCertificate(\OC::$server->getCertificateManager(null))); |
|
| 162 | - $application->add(new OC\Core\Command\Security\RemoveCertificate(\OC::$server->getCertificateManager(null))); |
|
| 160 | + $application->add(new OC\Core\Command\Security\ListCertificates(\OC::$server->getCertificateManager(null), \OC::$server->getL10N('core'))); |
|
| 161 | + $application->add(new OC\Core\Command\Security\ImportCertificate(\OC::$server->getCertificateManager(null))); |
|
| 162 | + $application->add(new OC\Core\Command\Security\RemoveCertificate(\OC::$server->getCertificateManager(null))); |
|
| 163 | 163 | } else { |
| 164 | - $application->add(new OC\Core\Command\Maintenance\Install(\OC::$server->getSystemConfig())); |
|
| 164 | + $application->add(new OC\Core\Command\Maintenance\Install(\OC::$server->getSystemConfig())); |
|
| 165 | 165 | } |
@@ -46,238 +46,238 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | interface IDBConnection { |
| 48 | 48 | |
| 49 | - const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES'; |
|
| 49 | + const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES'; |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * Gets the QueryBuilder for the connection. |
|
| 53 | - * |
|
| 54 | - * @return \OCP\DB\QueryBuilder\IQueryBuilder |
|
| 55 | - * @since 8.2.0 |
|
| 56 | - */ |
|
| 57 | - public function getQueryBuilder(); |
|
| 51 | + /** |
|
| 52 | + * Gets the QueryBuilder for the connection. |
|
| 53 | + * |
|
| 54 | + * @return \OCP\DB\QueryBuilder\IQueryBuilder |
|
| 55 | + * @since 8.2.0 |
|
| 56 | + */ |
|
| 57 | + public function getQueryBuilder(); |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * Used to abstract the ownCloud database access away |
|
| 61 | - * @param string $sql the sql query with ? placeholder for params |
|
| 62 | - * @param int $limit the maximum number of rows |
|
| 63 | - * @param int $offset from which row we want to start |
|
| 64 | - * @return \Doctrine\DBAL\Driver\Statement The prepared statement. |
|
| 65 | - * @since 6.0.0 |
|
| 66 | - */ |
|
| 67 | - public function prepare($sql, $limit=null, $offset=null); |
|
| 59 | + /** |
|
| 60 | + * Used to abstract the ownCloud database access away |
|
| 61 | + * @param string $sql the sql query with ? placeholder for params |
|
| 62 | + * @param int $limit the maximum number of rows |
|
| 63 | + * @param int $offset from which row we want to start |
|
| 64 | + * @return \Doctrine\DBAL\Driver\Statement The prepared statement. |
|
| 65 | + * @since 6.0.0 |
|
| 66 | + */ |
|
| 67 | + public function prepare($sql, $limit=null, $offset=null); |
|
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * Executes an, optionally parameterized, SQL query. |
|
| 71 | - * |
|
| 72 | - * If the query is parameterized, a prepared statement is used. |
|
| 73 | - * If an SQLLogger is configured, the execution is logged. |
|
| 74 | - * |
|
| 75 | - * @param string $query The SQL query to execute. |
|
| 76 | - * @param string[] $params The parameters to bind to the query, if any. |
|
| 77 | - * @param array $types The types the previous parameters are in. |
|
| 78 | - * @return \Doctrine\DBAL\Driver\Statement The executed statement. |
|
| 79 | - * @since 8.0.0 |
|
| 80 | - */ |
|
| 81 | - public function executeQuery($query, array $params = array(), $types = array()); |
|
| 69 | + /** |
|
| 70 | + * Executes an, optionally parameterized, SQL query. |
|
| 71 | + * |
|
| 72 | + * If the query is parameterized, a prepared statement is used. |
|
| 73 | + * If an SQLLogger is configured, the execution is logged. |
|
| 74 | + * |
|
| 75 | + * @param string $query The SQL query to execute. |
|
| 76 | + * @param string[] $params The parameters to bind to the query, if any. |
|
| 77 | + * @param array $types The types the previous parameters are in. |
|
| 78 | + * @return \Doctrine\DBAL\Driver\Statement The executed statement. |
|
| 79 | + * @since 8.0.0 |
|
| 80 | + */ |
|
| 81 | + public function executeQuery($query, array $params = array(), $types = array()); |
|
| 82 | 82 | |
| 83 | - /** |
|
| 84 | - * Executes an SQL INSERT/UPDATE/DELETE query with the given parameters |
|
| 85 | - * and returns the number of affected rows. |
|
| 86 | - * |
|
| 87 | - * This method supports PDO binding types as well as DBAL mapping types. |
|
| 88 | - * |
|
| 89 | - * @param string $query The SQL query. |
|
| 90 | - * @param array $params The query parameters. |
|
| 91 | - * @param array $types The parameter types. |
|
| 92 | - * @return integer The number of affected rows. |
|
| 93 | - * @since 8.0.0 |
|
| 94 | - */ |
|
| 95 | - public function executeUpdate($query, array $params = array(), array $types = array()); |
|
| 83 | + /** |
|
| 84 | + * Executes an SQL INSERT/UPDATE/DELETE query with the given parameters |
|
| 85 | + * and returns the number of affected rows. |
|
| 86 | + * |
|
| 87 | + * This method supports PDO binding types as well as DBAL mapping types. |
|
| 88 | + * |
|
| 89 | + * @param string $query The SQL query. |
|
| 90 | + * @param array $params The query parameters. |
|
| 91 | + * @param array $types The parameter types. |
|
| 92 | + * @return integer The number of affected rows. |
|
| 93 | + * @since 8.0.0 |
|
| 94 | + */ |
|
| 95 | + public function executeUpdate($query, array $params = array(), array $types = array()); |
|
| 96 | 96 | |
| 97 | - /** |
|
| 98 | - * Used to get the id of the just inserted element |
|
| 99 | - * @param string $table the name of the table where we inserted the item |
|
| 100 | - * @return int the id of the inserted element |
|
| 101 | - * @since 6.0.0 |
|
| 102 | - */ |
|
| 103 | - public function lastInsertId($table = null); |
|
| 97 | + /** |
|
| 98 | + * Used to get the id of the just inserted element |
|
| 99 | + * @param string $table the name of the table where we inserted the item |
|
| 100 | + * @return int the id of the inserted element |
|
| 101 | + * @since 6.0.0 |
|
| 102 | + */ |
|
| 103 | + public function lastInsertId($table = null); |
|
| 104 | 104 | |
| 105 | - /** |
|
| 106 | - * Insert a row if the matching row does not exists. |
|
| 107 | - * |
|
| 108 | - * @param string $table The table name (will replace *PREFIX* with the actual prefix) |
|
| 109 | - * @param array $input data that should be inserted into the table (column name => value) |
|
| 110 | - * @param array|null $compare List of values that should be checked for "if not exists" |
|
| 111 | - * If this is null or an empty array, all keys of $input will be compared |
|
| 112 | - * Please note: text fields (clob) must not be used in the compare array |
|
| 113 | - * @return int number of inserted rows |
|
| 114 | - * @throws \Doctrine\DBAL\DBALException |
|
| 115 | - * @since 6.0.0 - parameter $compare was added in 8.1.0, return type changed from boolean in 8.1.0 |
|
| 116 | - */ |
|
| 117 | - public function insertIfNotExist($table, $input, array $compare = null); |
|
| 105 | + /** |
|
| 106 | + * Insert a row if the matching row does not exists. |
|
| 107 | + * |
|
| 108 | + * @param string $table The table name (will replace *PREFIX* with the actual prefix) |
|
| 109 | + * @param array $input data that should be inserted into the table (column name => value) |
|
| 110 | + * @param array|null $compare List of values that should be checked for "if not exists" |
|
| 111 | + * If this is null or an empty array, all keys of $input will be compared |
|
| 112 | + * Please note: text fields (clob) must not be used in the compare array |
|
| 113 | + * @return int number of inserted rows |
|
| 114 | + * @throws \Doctrine\DBAL\DBALException |
|
| 115 | + * @since 6.0.0 - parameter $compare was added in 8.1.0, return type changed from boolean in 8.1.0 |
|
| 116 | + */ |
|
| 117 | + public function insertIfNotExist($table, $input, array $compare = null); |
|
| 118 | 118 | |
| 119 | - /** |
|
| 120 | - * Insert or update a row value |
|
| 121 | - * |
|
| 122 | - * @param string $table |
|
| 123 | - * @param array $keys (column name => value) |
|
| 124 | - * @param array $values (column name => value) |
|
| 125 | - * @param array $updatePreconditionValues ensure values match preconditions (column name => value) |
|
| 126 | - * @return int number of new rows |
|
| 127 | - * @throws \Doctrine\DBAL\DBALException |
|
| 128 | - * @throws PreconditionNotMetException |
|
| 129 | - * @since 9.0.0 |
|
| 130 | - */ |
|
| 131 | - public function setValues($table, array $keys, array $values, array $updatePreconditionValues = []); |
|
| 119 | + /** |
|
| 120 | + * Insert or update a row value |
|
| 121 | + * |
|
| 122 | + * @param string $table |
|
| 123 | + * @param array $keys (column name => value) |
|
| 124 | + * @param array $values (column name => value) |
|
| 125 | + * @param array $updatePreconditionValues ensure values match preconditions (column name => value) |
|
| 126 | + * @return int number of new rows |
|
| 127 | + * @throws \Doctrine\DBAL\DBALException |
|
| 128 | + * @throws PreconditionNotMetException |
|
| 129 | + * @since 9.0.0 |
|
| 130 | + */ |
|
| 131 | + public function setValues($table, array $keys, array $values, array $updatePreconditionValues = []); |
|
| 132 | 132 | |
| 133 | - /** |
|
| 134 | - * Create an exclusive read+write lock on a table |
|
| 135 | - * |
|
| 136 | - * Important Note: Due to the nature how locks work on different DBs, it is |
|
| 137 | - * only possible to lock one table at a time. You should also NOT start a |
|
| 138 | - * transaction while holding a lock. |
|
| 139 | - * |
|
| 140 | - * @param string $tableName |
|
| 141 | - * @since 9.1.0 |
|
| 142 | - */ |
|
| 143 | - public function lockTable($tableName); |
|
| 133 | + /** |
|
| 134 | + * Create an exclusive read+write lock on a table |
|
| 135 | + * |
|
| 136 | + * Important Note: Due to the nature how locks work on different DBs, it is |
|
| 137 | + * only possible to lock one table at a time. You should also NOT start a |
|
| 138 | + * transaction while holding a lock. |
|
| 139 | + * |
|
| 140 | + * @param string $tableName |
|
| 141 | + * @since 9.1.0 |
|
| 142 | + */ |
|
| 143 | + public function lockTable($tableName); |
|
| 144 | 144 | |
| 145 | - /** |
|
| 146 | - * Release a previous acquired lock again |
|
| 147 | - * |
|
| 148 | - * @since 9.1.0 |
|
| 149 | - */ |
|
| 150 | - public function unlockTable(); |
|
| 145 | + /** |
|
| 146 | + * Release a previous acquired lock again |
|
| 147 | + * |
|
| 148 | + * @since 9.1.0 |
|
| 149 | + */ |
|
| 150 | + public function unlockTable(); |
|
| 151 | 151 | |
| 152 | - /** |
|
| 153 | - * Start a transaction |
|
| 154 | - * @since 6.0.0 |
|
| 155 | - */ |
|
| 156 | - public function beginTransaction(); |
|
| 152 | + /** |
|
| 153 | + * Start a transaction |
|
| 154 | + * @since 6.0.0 |
|
| 155 | + */ |
|
| 156 | + public function beginTransaction(); |
|
| 157 | 157 | |
| 158 | - /** |
|
| 159 | - * Check if a transaction is active |
|
| 160 | - * |
|
| 161 | - * @return bool |
|
| 162 | - * @since 8.2.0 |
|
| 163 | - */ |
|
| 164 | - public function inTransaction(); |
|
| 158 | + /** |
|
| 159 | + * Check if a transaction is active |
|
| 160 | + * |
|
| 161 | + * @return bool |
|
| 162 | + * @since 8.2.0 |
|
| 163 | + */ |
|
| 164 | + public function inTransaction(); |
|
| 165 | 165 | |
| 166 | - /** |
|
| 167 | - * Commit the database changes done during a transaction that is in progress |
|
| 168 | - * @since 6.0.0 |
|
| 169 | - */ |
|
| 170 | - public function commit(); |
|
| 166 | + /** |
|
| 167 | + * Commit the database changes done during a transaction that is in progress |
|
| 168 | + * @since 6.0.0 |
|
| 169 | + */ |
|
| 170 | + public function commit(); |
|
| 171 | 171 | |
| 172 | - /** |
|
| 173 | - * Rollback the database changes done during a transaction that is in progress |
|
| 174 | - * @since 6.0.0 |
|
| 175 | - */ |
|
| 176 | - public function rollBack(); |
|
| 172 | + /** |
|
| 173 | + * Rollback the database changes done during a transaction that is in progress |
|
| 174 | + * @since 6.0.0 |
|
| 175 | + */ |
|
| 176 | + public function rollBack(); |
|
| 177 | 177 | |
| 178 | - /** |
|
| 179 | - * Gets the error code and message as a string for logging |
|
| 180 | - * @return string |
|
| 181 | - * @since 6.0.0 |
|
| 182 | - */ |
|
| 183 | - public function getError(); |
|
| 178 | + /** |
|
| 179 | + * Gets the error code and message as a string for logging |
|
| 180 | + * @return string |
|
| 181 | + * @since 6.0.0 |
|
| 182 | + */ |
|
| 183 | + public function getError(); |
|
| 184 | 184 | |
| 185 | - /** |
|
| 186 | - * Fetch the SQLSTATE associated with the last database operation. |
|
| 187 | - * |
|
| 188 | - * @return integer The last error code. |
|
| 189 | - * @since 8.0.0 |
|
| 190 | - */ |
|
| 191 | - public function errorCode(); |
|
| 185 | + /** |
|
| 186 | + * Fetch the SQLSTATE associated with the last database operation. |
|
| 187 | + * |
|
| 188 | + * @return integer The last error code. |
|
| 189 | + * @since 8.0.0 |
|
| 190 | + */ |
|
| 191 | + public function errorCode(); |
|
| 192 | 192 | |
| 193 | - /** |
|
| 194 | - * Fetch extended error information associated with the last database operation. |
|
| 195 | - * |
|
| 196 | - * @return array The last error information. |
|
| 197 | - * @since 8.0.0 |
|
| 198 | - */ |
|
| 199 | - public function errorInfo(); |
|
| 193 | + /** |
|
| 194 | + * Fetch extended error information associated with the last database operation. |
|
| 195 | + * |
|
| 196 | + * @return array The last error information. |
|
| 197 | + * @since 8.0.0 |
|
| 198 | + */ |
|
| 199 | + public function errorInfo(); |
|
| 200 | 200 | |
| 201 | - /** |
|
| 202 | - * Establishes the connection with the database. |
|
| 203 | - * |
|
| 204 | - * @return bool |
|
| 205 | - * @since 8.0.0 |
|
| 206 | - */ |
|
| 207 | - public function connect(); |
|
| 201 | + /** |
|
| 202 | + * Establishes the connection with the database. |
|
| 203 | + * |
|
| 204 | + * @return bool |
|
| 205 | + * @since 8.0.0 |
|
| 206 | + */ |
|
| 207 | + public function connect(); |
|
| 208 | 208 | |
| 209 | - /** |
|
| 210 | - * Close the database connection |
|
| 211 | - * @since 8.0.0 |
|
| 212 | - */ |
|
| 213 | - public function close(); |
|
| 209 | + /** |
|
| 210 | + * Close the database connection |
|
| 211 | + * @since 8.0.0 |
|
| 212 | + */ |
|
| 213 | + public function close(); |
|
| 214 | 214 | |
| 215 | - /** |
|
| 216 | - * Quotes a given input parameter. |
|
| 217 | - * |
|
| 218 | - * @param mixed $input Parameter to be quoted. |
|
| 219 | - * @param int $type Type of the parameter. |
|
| 220 | - * @return string The quoted parameter. |
|
| 221 | - * @since 8.0.0 |
|
| 222 | - */ |
|
| 223 | - public function quote($input, $type = IQueryBuilder::PARAM_STR); |
|
| 215 | + /** |
|
| 216 | + * Quotes a given input parameter. |
|
| 217 | + * |
|
| 218 | + * @param mixed $input Parameter to be quoted. |
|
| 219 | + * @param int $type Type of the parameter. |
|
| 220 | + * @return string The quoted parameter. |
|
| 221 | + * @since 8.0.0 |
|
| 222 | + */ |
|
| 223 | + public function quote($input, $type = IQueryBuilder::PARAM_STR); |
|
| 224 | 224 | |
| 225 | - /** |
|
| 226 | - * Gets the DatabasePlatform instance that provides all the metadata about |
|
| 227 | - * the platform this driver connects to. |
|
| 228 | - * |
|
| 229 | - * @return \Doctrine\DBAL\Platforms\AbstractPlatform The database platform. |
|
| 230 | - * @since 8.0.0 |
|
| 231 | - */ |
|
| 232 | - public function getDatabasePlatform(); |
|
| 225 | + /** |
|
| 226 | + * Gets the DatabasePlatform instance that provides all the metadata about |
|
| 227 | + * the platform this driver connects to. |
|
| 228 | + * |
|
| 229 | + * @return \Doctrine\DBAL\Platforms\AbstractPlatform The database platform. |
|
| 230 | + * @since 8.0.0 |
|
| 231 | + */ |
|
| 232 | + public function getDatabasePlatform(); |
|
| 233 | 233 | |
| 234 | - /** |
|
| 235 | - * Drop a table from the database if it exists |
|
| 236 | - * |
|
| 237 | - * @param string $table table name without the prefix |
|
| 238 | - * @since 8.0.0 |
|
| 239 | - */ |
|
| 240 | - public function dropTable($table); |
|
| 234 | + /** |
|
| 235 | + * Drop a table from the database if it exists |
|
| 236 | + * |
|
| 237 | + * @param string $table table name without the prefix |
|
| 238 | + * @since 8.0.0 |
|
| 239 | + */ |
|
| 240 | + public function dropTable($table); |
|
| 241 | 241 | |
| 242 | - /** |
|
| 243 | - * Check if a table exists |
|
| 244 | - * |
|
| 245 | - * @param string $table table name without the prefix |
|
| 246 | - * @return bool |
|
| 247 | - * @since 8.0.0 |
|
| 248 | - */ |
|
| 249 | - public function tableExists($table); |
|
| 242 | + /** |
|
| 243 | + * Check if a table exists |
|
| 244 | + * |
|
| 245 | + * @param string $table table name without the prefix |
|
| 246 | + * @return bool |
|
| 247 | + * @since 8.0.0 |
|
| 248 | + */ |
|
| 249 | + public function tableExists($table); |
|
| 250 | 250 | |
| 251 | - /** |
|
| 252 | - * Escape a parameter to be used in a LIKE query |
|
| 253 | - * |
|
| 254 | - * @param string $param |
|
| 255 | - * @return string |
|
| 256 | - * @since 9.0.0 |
|
| 257 | - */ |
|
| 258 | - public function escapeLikeParameter($param); |
|
| 251 | + /** |
|
| 252 | + * Escape a parameter to be used in a LIKE query |
|
| 253 | + * |
|
| 254 | + * @param string $param |
|
| 255 | + * @return string |
|
| 256 | + * @since 9.0.0 |
|
| 257 | + */ |
|
| 258 | + public function escapeLikeParameter($param); |
|
| 259 | 259 | |
| 260 | - /** |
|
| 261 | - * Check whether or not the current database support 4byte wide unicode |
|
| 262 | - * |
|
| 263 | - * @return bool |
|
| 264 | - * @since 11.0.0 |
|
| 265 | - */ |
|
| 266 | - public function supports4ByteText(); |
|
| 260 | + /** |
|
| 261 | + * Check whether or not the current database support 4byte wide unicode |
|
| 262 | + * |
|
| 263 | + * @return bool |
|
| 264 | + * @since 11.0.0 |
|
| 265 | + */ |
|
| 266 | + public function supports4ByteText(); |
|
| 267 | 267 | |
| 268 | - /** |
|
| 269 | - * Create the schema of the connected database |
|
| 270 | - * |
|
| 271 | - * @return Schema |
|
| 272 | - * @since 13.0.0 |
|
| 273 | - */ |
|
| 274 | - public function createSchema(); |
|
| 268 | + /** |
|
| 269 | + * Create the schema of the connected database |
|
| 270 | + * |
|
| 271 | + * @return Schema |
|
| 272 | + * @since 13.0.0 |
|
| 273 | + */ |
|
| 274 | + public function createSchema(); |
|
| 275 | 275 | |
| 276 | - /** |
|
| 277 | - * Migrate the database to the given schema |
|
| 278 | - * |
|
| 279 | - * @param Schema $toSchema |
|
| 280 | - * @since 13.0.0 |
|
| 281 | - */ |
|
| 282 | - public function migrateToSchema(Schema $toSchema); |
|
| 276 | + /** |
|
| 277 | + * Migrate the database to the given schema |
|
| 278 | + * |
|
| 279 | + * @param Schema $toSchema |
|
| 280 | + * @since 13.0.0 |
|
| 281 | + */ |
|
| 282 | + public function migrateToSchema(Schema $toSchema); |
|
| 283 | 283 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | interface IDBConnection { |
| 48 | 48 | |
| 49 | - const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES'; |
|
| 49 | + const ADD_MISSING_INDEXES_EVENT = self::class.'::ADD_MISSING_INDEXES'; |
|
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Gets the QueryBuilder for the connection. |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * @return \Doctrine\DBAL\Driver\Statement The prepared statement. |
| 65 | 65 | * @since 6.0.0 |
| 66 | 66 | */ |
| 67 | - public function prepare($sql, $limit=null, $offset=null); |
|
| 67 | + public function prepare($sql, $limit = null, $offset = null); |
|
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Executes an, optionally parameterized, SQL query. |