laravel migration 如果表中含有枚举类型字段的话,修改迁移操作会报错
public function up()
{
// 加上这一句就可以啦
Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
Schema::table('performance', function (Blueprint $table) {
$table->string('assessment_for')->change();
});
}