Error in php artisan migrate laravel

I am using Laravel and I have a transition with a function:

public function up()
{
    Schema::table('articles', function (Blueprint $table) {
        $table->string('article_title',100)->change();
    });
}

and when I do 'php artisan migrate' on my cmd, I get an error:

[Doctrine \ DBAL \ DBALException] An unknown database type name was requested, Doctrine \ DBAL \ Platforms \ MySqlPlatform may not support it.

I don't even use an enumeration! And I also do not have any other migrations that are not portable and have an enumeration.

+4
source share
3 answers

, . , Schema, database migration factory, Doctrine\DBAL\Schema, .

composer install "" , . , , , ... , ?

, . , .

"doctrine/dbal": "^2.5", ( ) composer.json "require": {.

, , , :

use Doctrine\DBAL\Schema\Schema

.

+1

, .

Laravel:

. .

+3

Laravel: . doctrine/dbal composer.json.

. doctrine/dbal composer.json.

:

composer require doctrine/dbal
-1

All Articles