From 87dd760a89891d15f75175e5caa43a3983a28d38 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 30 Jun 2020 22:12:06 +0200 Subject: Replace TYPE with TYPES As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg --- apps/settings/lib/Controller/CheckSetupController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/settings/lib/Controller') diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index 603a1941336..3fd4407f7c9 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -42,7 +42,7 @@ use bantu\IniGetWrapper\IniGetWrapper; use DirectoryIterator; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Platforms\SqlitePlatform; -use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Types; use GuzzleHttp\Exception\ClientException; use OC; use OC\AppFramework\Http; @@ -634,7 +634,7 @@ Raw output $column = $table->getColumn($columnName); $isAutoIncrement = $column->getAutoincrement(); $isAutoIncrementOnSqlite = $isSqlite && $isAutoIncrement; - if ($column->getType()->getName() !== Type::BIGINT && !$isAutoIncrementOnSqlite) { + if ($column->getType()->getName() !== Types::BIGINT && !$isAutoIncrementOnSqlite) { $pendingColumns[] = $tableName . '.' . $columnName; } } -- cgit v1.2.3