Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-07-02 13:21:01 +0300
committerGitHub <noreply@github.com>2020-07-02 13:21:01 +0300
commit0157e30ad4281d65818ac0f0e08f990aa145ca95 (patch)
treea9e7959748a3bf23d0a5c18ada7fce13f32e0da4 /core/Command
parent0ac3a65f627fab0e5010af4c496410441e47aed4 (diff)
parent87dd760a89891d15f75175e5caa43a3983a28d38 (diff)
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.php5
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;