diff --git a/src/Schema/Grammar.php b/src/Schema/Grammar.php index cb173b0..f033dff 100644 --- a/src/Schema/Grammar.php +++ b/src/Schema/Grammar.php @@ -39,10 +39,6 @@ public function __construct() */ public function compileChange(Blueprint $blueprint, Fluent $command, Connection $connection) { - if (version_compare(Application::VERSION, '10.0', '<')) { - throw new LogicException('This database driver does not support modifying columns on Laravel < 10.0.'); - } - $isColumnstoreTable = $connection->scalar(sprintf( "select exists (select 1 from information_schema.tables where table_schema = %s and table_name = %s and storage_type = 'COLUMNSTORE') as is_columnstore", $this->quoteString($connection->getDatabaseName()), diff --git a/tests/Hybrid/ChangeColumnTest.php b/tests/Hybrid/ChangeColumnTest.php index b1ddb9d..2229534 100644 --- a/tests/Hybrid/ChangeColumnTest.php +++ b/tests/Hybrid/ChangeColumnTest.php @@ -74,6 +74,29 @@ public function change_column_on_rowstore_table() $this->assertEquals('alter table `test` modify `data` text null', $statements[0]); } + /** @test */ + public function change_column_on_rowstore_table_with_doctrine() + { + if (! $this->runHybridIntegrations()) { + return; + } + + $this->mockDatabaseConnection = false; + + $this->createTable(function (Blueprint $table) { + $table->rowstore(); + $table->id(); + $table->string('data'); + }); + + Schema::table('test', function (Blueprint $table) { + $table->text('data')->nullable()->change(); + }); + + $this->assertEquals(['id', 'data'], Schema::getColumnListing('test')); + $this->assertEquals('text', Schema::getColumnType('test', 'data')); + } + /** @test */ public function change_column_of_columnstore_table() {