我有个小问题做一些外键..。
所选列“playerName”必须进行索引,并且必须具有要创建的外键的兼容类型。在这里,我的问题开始了:我非常肯定,列(towns.playerName) 是索引的,并且肯定是相同类型的( VARCHAR(255) ).我想将外键从players.name (primary key, not null, uni
下面的迁移脚本在旧版本的Laravel中运行得很流畅,但我将其添加到我的全新Laravel 5.8中并运行了该脚本。我去找Error: foreign key was not formed correctly 评估迁移: public function up() { $table->increments('id');
$table->integer('user_id')-