2

When I run CMD> php artisan migrate

I got the below error

Changing columns for table "gift_cards" requires Doctrine DBAL; install "doctrine/dbal". Unknown database type enum requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it

I downloaded the dependency using composer, it will download version based on my laravel version

"composer require doctrine/dbal"

the dependency added to my composer.json

"require": {
    "laravel/framework": "5.5.*",
    "doctrine/dbal": "^2.5",
}

when I run the migrate I am getting the below error.

CMD> php artisan migrate Migration table created successfully.

In AbstractPlatform.php line 423: Unknown database type enum requested Doctrine\DBAL\Platforms\MySqlPlatform may not support it.

All my tables has database engine as InnoDB

Rahul
  • 18,271
  • 7
  • 41
  • 60
Mohammad Fareed
  • 1,927
  • 6
  • 26
  • 59
  • What about reading the error messages? They clearly state that Doctrine's enum type is not supported by MySQL. Have a look at https://www.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/mysql-enums.html for alternatives – Nico Haase Apr 05 '19 at 06:37

1 Answers1

0

I added the dependencies to my composer.json

"require": { "laravel/framework": "5.5.*", "doctrine/dbal": "^2.5", }

and run the composer install command.

Mohammad Fareed
  • 1,927
  • 6
  • 26
  • 59