Laravel db migration - renameColumn error - Unknown database type enum requested

前端 未结 8 859
暗喜
暗喜 2020-12-10 11:53

I am using Laravel 4.2. I have the following library loaded in my composer.json

\"doctrine/dbal\": \"2.4.*\",

I c

8条回答
  •  佛祖请我去吃肉
    2020-12-10 12:19

    DB::getDoctrineSchemaManager()
        ->getDatabasePlatform()
        ->registerDoctrineTypeMapping('enum', 'string');
    

    This works for me on Laravel 5.1

提交回复
热议问题