summaryrefslogtreecommitdiffstats
path: root/core/Command/Db
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-06-30 22:12:06 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-06-30 23:46:22 +0200
commit87dd760a89891d15f75175e5caa43a3983a28d38 (patch)
treeb9365127a8f6856044739f32329d88e14684ee8a /core/Command/Db
parent43216f0ac9e3841747019b8c2def0c58e71b8cca (diff)
downloadnextcloud-server-87dd760a89891d15f75175e5caa43a3983a28d38.tar.gz
nextcloud-server-87dd760a89891d15f75175e5caa43a3983a28d38.zip
Replace TYPE with TYPES
As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/Command/Db')
-rw-r--r--core/Command/Db/ConvertFilecacheBigInt.php5
1 files changed, 3 insertions, 2 deletions
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;