mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Migrate away from deprecated doctrine/dbal getName function
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
51758117a7
commit
60bc97e543
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue