File tree Expand file tree Collapse file tree
apps/settings/lib/SetupChecks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 */
2626namespace OCA \Settings \SetupChecks ;
2727
28+ use Doctrine \DBAL \Types \BigIntType ;
2829use OC \Core \Command \Db \ConvertFilecacheBigInt ;
2930use OC \DB \Connection ;
3031use OC \DB \SchemaWrapper ;
31- use OCP \DB \Types ;
3232use OCP \EventDispatcher \IEventDispatcher ;
3333use OCP \IDBConnection ;
3434use 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 }
You can’t perform that action at this time.
0 commit comments