]> source.dussan.org Git - nextcloud-server.git/commitdiff
Migrate away from deprecated doctrine/dbal getName function 41468/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 16 Nov 2023 10:55:01 +0000 (11:55 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 28 Nov 2023 13:08:10 +0000 (14:08 +0100)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php

index 57dcbd689fc74f4cf5f8cd9445ac6bf6af8f270a..35143f74e9489e019c110e7f716822ded5634288 100644 (file)
@@ -25,10 +25,10 @@ declare(strict_types=1);
  */
 namespace OCA\Settings\SetupChecks;
 
+use Doctrine\DBAL\Types\BigIntType;
 use OC\Core\Command\Db\ConvertFilecacheBigInt;
 use OC\DB\Connection;
 use OC\DB\SchemaWrapper;
-use OCP\DB\Types;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\IDBConnection;
 use OCP\IL10N;
@@ -71,7 +71,7 @@ class DatabasePendingBigIntConversions implements ISetupCheck {
                                $column = $table->getColumn($columnName);
                                $isAutoIncrement = $column->getAutoincrement();
                                $isAutoIncrementOnSqlite = $isSqlite && $isAutoIncrement;
-                               if ($column->getType()->getName() !== Types::BIGINT && !$isAutoIncrementOnSqlite) {
+                               if (!($column->getType() instanceof BigIntType) && !$isAutoIncrementOnSqlite) {
                                        $pendingColumns[] = $tableName . '.' . $columnName;
                                }
                        }