在运行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) 我试图运行命令php artisan migrate:refresh,它抛出以下错误,
[Symfony\Component\Debug\Exception\FatalErrorException]
未找到类'CreatePasswordResetsTable'
我签入了DB,它在迁移表中有行.我截断了表并重新运行命令,它运行正常.我需要知道为什么在迁移表中没有删除这些行.