在运行php artisan migrate时,我收到以下错误
[Doctrine\DBAL\DBALException]
请求未知的数据库类型枚举,Doctrine\DBAL\Platforms\MySqlPlatform可能不支持它.
如何解决此问题.
码:
public function up() {
Schema::table('blogs', function (Blueprint $table) {
$table->string('wordpress_id')->nullable();
$table->string('google_blog_id')->nullable()->change();
});
}
Run Code Online (Sandbox Code Playgroud) 运行时doctrine:mapping:import我得到一个错误:
请求未知的数据库类型枚举,Doctrine\DBAL\Platforms\MySqlPlatform可能不支持它.
看来我需要设置use_native_enum到true一些如何.但是,所有文档和博客文章都引用了Symfony <1.4.在Symfony 2中有什么解决方案吗?