diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-07-02 12:21:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 12:21:01 +0200 |
commit | 0157e30ad4281d65818ac0f0e08f990aa145ca95 (patch) | |
tree | a9e7959748a3bf23d0a5c18ada7fce13f32e0da4 /core/Command | |
parent | 0ac3a65f627fab0e5010af4c496410441e47aed4 (diff) | |
parent | 87dd760a89891d15f75175e5caa43a3983a28d38 (diff) | |
download | nextcloud-server-0157e30ad4281d65818ac0f0e08f990aa145ca95.tar.gz nextcloud-server-0157e30ad4281d65818ac0f0e08f990aa145ca95.zip |
Merge pull request #21599 from nextcloud/debt/noid/type-to-types
Replace TYPE with TYPES
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Db/ConvertFilecacheBigInt.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Command/Db/ConvertFilecacheBigInt.php b/core/Command/Db/ConvertFilecacheBigInt.php index f65e76ddfc3..99ff3327f8f 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; |