加上判断即可
if (!Schema::hasTable('users')) {
Schema::create('users', function (Blueprint $table) {
//
}
}
if (!Schema::hasTable('users')) {
Schema::create('users', function (Blueprint $table) {
//
}
}
本文标题:Laravel运行 php artisan migrate报错表
本文链接:https://www.haomeiwen.com/subject/njkqmctx.html
网友评论