From: Côme Chilliet Date: Thu, 16 Nov 2023 10:55:01 +0000 (+0100) Subject: Migrate away from deprecated doctrine/dbal getName function X-Git-Tag: v29.0.0beta1~768^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60bc97e543c3358100fa0b4d1d7f0811cc9c0563;p=nextcloud-server.git Migrate away from deprecated doctrine/dbal getName function Signed-off-by: Côme Chilliet --- diff --git a/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php b/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php index 57dcbd689fc..35143f74e94 100644 --- a/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php +++ b/apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php @@ -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; } }