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.
, . , Schema, database migration factory, Doctrine\DBAL\Schema, .
Schema
database migration
Doctrine\DBAL\Schema
composer install "" , . , , , ... , ?
composer install
, . , .
"doctrine/dbal": "^2.5", ( ) composer.json "require": {.
"doctrine/dbal": "^2.5",
composer.json
"require": {
, , , :
use Doctrine\DBAL\Schema\Schema
.
, .
Laravel:
. .
Laravel: . doctrine/dbal composer.json.
. doctrine/dbal composer.json.
:
composer require doctrine/dbal