Closed hafezdivandari closed 1 month ago
It looks like Schema::getColumnType
requires Doctrine\DBAL\Driver\AbstractMySQLDriver
for 10.0.0 version of Laravel.
But from 10.30.0 it works well (https://github.com/laravel/framework/pull/48357 )
@AdalbertMemSQL yeah I fixed that function on Laravel 10.30, it was using Doctrine DBAL before that. We can limit that assertion to latest version maybe?
Yep, that sounds like a good solution
Fixes #39
Add support for modifying columns on
Note 1: On Laravel 10.x, You have to call
Schema::useNativeSchemaOperationsIfPossible()
method within theboot
method of yourApp\Providers\AppServiceProvider
class. Not needed on Laravel 11.xNote 2: I'm not sure how Singlestore handles indexes and foreign keys of the column being modified, couldn't find anything related on the docs.