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 --- core/Command/Db/ConvertFilecacheBigInt.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/Command') diff --git a/core/Command/Db/ConvertFilecacheBigInt.php b/core/Command/Db/ConvertFilecacheBigInt.php index 4a833fbbede..4067838acf0 100644 --- a/core/Command/Db/ConvertFilecacheBigInt.php +++ b/core/Command/Db/ConvertFilecacheBigInt.php @@ -29,6 +29,7 @@ namespace OC\Core\Command\Db; use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Types; use OC\DB\SchemaWrapper; use OCP\IDBConnection; use Symfony\Component\Console\Command\Command; @@ -88,8 +89,8 @@ class ConvertFilecacheBigInt extends Command { $column = $table->getColumn($columnName); $isAutoIncrement = $column->getAutoincrement(); $isAutoIncrementOnSqlite = $isSqlite && $isAutoIncrement; - if ($column->getType()->getName() !== Type::BIGINT && !$isAutoIncrementOnSqlite) { - $column->setType(Type::getType(Type::BIGINT)); + if ($column->getType()->getName() !== Types::BIGINT && !$isAutoIncrementOnSqlite) { + $column->setType(Type::getType(Types::BIGINT)); $column->setOptions(['length' => 20]); $updates[] = '* ' . $tableName . '.' . $columnName; -- cgit v1.2.3