Skip to content

Commit e3d96ff

Browse files
committed
Migrate away from deprecated doctrine/dbal getName function
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent b761893 commit e3d96ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/settings/lib/SetupChecks/DatabasePendingBigIntConversions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
*/
2626
namespace OCA\Settings\SetupChecks;
2727

28+
use Doctrine\DBAL\Types\BigIntType;
2829
use OC\Core\Command\Db\ConvertFilecacheBigInt;
2930
use OC\DB\Connection;
3031
use OC\DB\SchemaWrapper;
31-
use OCP\DB\Types;
3232
use OCP\EventDispatcher\IEventDispatcher;
3333
use OCP\IDBConnection;
3434
use OCP\IL10N;
@@ -71,7 +71,7 @@ protected function getBigIntConversionPendingColumns(): array {
7171
$column = $table->getColumn($columnName);
7272
$isAutoIncrement = $column->getAutoincrement();
7373
$isAutoIncrementOnSqlite = $isSqlite && $isAutoIncrement;
74-
if ($column->getType()->getName() !== Types::BIGINT && !$isAutoIncrementOnSqlite) {
74+
if (!($column->getType() instanceof BigIntType) && !$isAutoIncrementOnSqlite) {
7575
$pendingColumns[] = $tableName . '.' . $columnName;
7676
}
7777
}

0 commit comments

Comments
 (0)