Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Db/ConvertMysqlToMB4.php')
-rw-r--r--core/Command/Db/ConvertMysqlToMB4.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/Command/Db/ConvertMysqlToMB4.php b/core/Command/Db/ConvertMysqlToMB4.php
index fd16dd09439..7abd600b3b9 100644
--- a/core/Command/Db/ConvertMysqlToMB4.php
+++ b/core/Command/Db/ConvertMysqlToMB4.php
@@ -2,6 +2,8 @@
/**
* @copyright Copyright (c) 2017, ownCloud GmbH
*
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
+ * @author Joas Schilling <coding@schilljs.com>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Thomas Müller <thomas.mueller@tmit.eu>
*
@@ -20,10 +22,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-
namespace OC\Core\Command\Db;
-use Doctrine\DBAL\Platforms\MySqlPlatform;
+use Doctrine\DBAL\Platforms\MySQLPlatform;
use OC\DB\MySqlTools;
use OC\Migration\ConsoleOutput;
use OC\Repair\Collation;
@@ -68,8 +69,8 @@ class ConvertMysqlToMB4 extends Command {
->setDescription('Convert charset of MySQL/MariaDB to use utf8mb4');
}
- protected function execute(InputInterface $input, OutputInterface $output) {
- if (!$this->connection->getDatabasePlatform() instanceof MySqlPlatform) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
+ if (!$this->connection->getDatabasePlatform() instanceof MySQLPlatform) {
$output->writeln("This command is only valid for MySQL/MariaDB databases.");
return 1;
}