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:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-06-30 23:12:06 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-07-01 00:46:22 +0300
commit87dd760a89891d15f75175e5caa43a3983a28d38 (patch)
treeb9365127a8f6856044739f32329d88e14684ee8a /lib/public/Migration
parent43216f0ac9e3841747019b8c2def0c58e71b8cca (diff)
Replace TYPE with TYPES
As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/public/Migration')
-rw-r--r--lib/public/Migration/BigIntMigration.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/Migration/BigIntMigration.php b/lib/public/Migration/BigIntMigration.php
index 251b7a908d7..cf08acd8387 100644
--- a/lib/public/Migration/BigIntMigration.php
+++ b/lib/public/Migration/BigIntMigration.php
@@ -24,6 +24,7 @@
namespace OCP\Migration;
use Doctrine\DBAL\Types\Type;
+use Doctrine\DBAL\Types\Types;
use OCP\DB\ISchemaWrapper;
/**
@@ -56,8 +57,8 @@ abstract class BigIntMigration extends SimpleMigrationStep {
foreach ($columns as $columnName) {
$column = $table->getColumn($columnName);
- if ($column->getType()->getName() !== Type::BIGINT) {
- $column->setType(Type::getType(Type::BIGINT));
+ if ($column->getType()->getName() !== Types::BIGINT) {
+ $column->setType(Type::getType(Types::BIGINT));
$column->setOptions(['length' => 20]);
}
}