protected static function getDoctrineColumnChangeOptions(Fluent $fluent)
    {
        $options = ['type' => static::getDoctrineColumnType($fluent['type'])];

        if (in_array($fluent['type'], ['text', 'mediumText', 'longText'])) {
            $options['length'] = static::calculateDoctrineTextLength($fluent['type']);
        }

        if ($fluent['type'] === 'json') {
            $options['customSchemaOptions'] = [
                'collation' => '',
            ];
        }

        return $options;
    }
protected static function getDoctrineColumnChangeOptions(Fluent $fluent)
    {
        $options = ['type' => static::getDoctrineColumnType($fluent['type'])];

        if (in_array($fluent['type'], ['text', 'mediumText', 'longText'])) {
            $options['length'] = static::calculateDoctrineTextLength($fluent['type']);
        }

        if ($fluent['type'] === 'json') {
            $options['customSchemaOptions'] = [
                'collation' => '',
            ];
        }

        return $options;
    }
protected static function getDoctrineColumnChangeOptions ( Fluent $ fluent ) { $ options = [ 'type' => static :: getDoctrineColumnType ( $ fluent [ 'type' ] ) ] ; if ( in_array ( $ fluent [ 'type' ] , [ 'text' , 'mediumText' , 'longText' ] ) ) { $ options [ 'length' ] = static :: calculateDoctrineTextLength ( $ fluent [ 'type' ] ) ; } if ( $ fluent [ 'type' ] === 'json' ) { $ options [ 'customSchemaOptions' ] = [ 'collation' => '' , ] ; } return $ options ; }
Get the Doctrine column change options.

@param  \Illuminate\Support\Fluent  $fluent
@return array
Get the Doctrine column change options .