原始错误在这里找到: https :
我在 IRC 中与 Machuga 进行了交谈 - 有人建议我创建一个问题。
第一次迁移后出错: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'up_migrations' already exists
$ php artisan migrate:make create_users_table --table=users --create
$ php artisan migrate
$ php artisan migrate:refresh
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'up_migrations' already exists
我追踪到这个文件: Illuminate\Database\MigrationsDatabaseMigrationRepository::repositoryExists()
,特别是在其中,调用return $schema->hasTable($this->table);
在这里
传递给 hasTable() 的 $this->table 变量不包含表前缀。 Illuminate\Database\Schema\MySqlBuilder::hasTable($table)
也不检查前缀。
不幸的是,我还不熟悉代码/约定,不知道您希望在哪里查找前缀。 (不知道哪个班级应该有那种“知识”)
好,谢谢。 我们会把它修好。
固定的。
我遇到了同样的问题,我刚刚从网站下载了框架。
我想知道修复是否已提交到站点版本。