aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Db/ConvertMysqlToMB4.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Db/ConvertMysqlToMB4.php')
-rw-r--r--core/Command/Db/ConvertMysqlToMB4.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Command/Db/ConvertMysqlToMB4.php b/core/Command/Db/ConvertMysqlToMB4.php
index 679cdd5f616..618e15de3f4 100644
--- a/core/Command/Db/ConvertMysqlToMB4.php
+++ b/core/Command/Db/ConvertMysqlToMB4.php
@@ -5,7 +5,6 @@
*/
namespace OC\Core\Command\Db;
-use Doctrine\DBAL\Platforms\MySQLPlatform;
use OC\DB\MySqlTools;
use OC\Migration\ConsoleOutput;
use OC\Repair\Collation;
@@ -34,7 +33,7 @@ class ConvertMysqlToMB4 extends Command {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- if (!$this->connection->getDatabasePlatform() instanceof MySQLPlatform) {
+ if ($this->connection->getDatabaseProvider() !== IDBConnection::PLATFORM_MYSQL) {
$output->writeln("This command is only valid for MySQL/MariaDB databases.");
return 1;
}