在运行PHP人员迁移,我得到以下错误Laravel 5.1未知数据库类型枚举请求
[学说\ DBAL \ DBALException]
未知数据库类型枚举请求,学说\ DBAL \平台\ MySqlPlatform可能不支持它。
如何解决此问题。
代码:
public function up() {
Schema::table('blogs', function (Blueprint $table) {
$table->string('wordpress_id')->nullable();
$table->string('google_blog_id')->nullable()->change();
});
}
请发布您尝试迁移的模式。 – Adrenaxus
公共功能了(){ 架构 ::表( '博客',函数(蓝图$表) {$ 表 - >字符串( 'wordpress_id') - >可以为空(); $ 表 - >字符串( 'google_blog_id') - > nullable() - > change(); }); } – karthick
你的表是否包含一个'enum'列? – Adrenaxus