我在通过迁移提供丢弃前瞻性密钥时遇到问题。这是我的“下调”功能或“回滚”功能(这是上次创建的迁移文件)
public function down()
{
Schema::connection('intranet')
->table('flyer_detail',function (Blueprint $table) {
$table->dropForeign('flyer_detail_flyer_uuid_foreign');
});
}
如您所见,我想从数据库'intranet'和表'flyer_detail'中删除foregin键...如果我运行命令eloquent:migrate:rollback
,我可以看到:
回滚:2019_10_16_091512_change_flyer_detail_foregin_key_cascade_on_delete
回滚:2019_10_16_091512_change_flyer_detail_foregin_key_cascade_on_delete
因此没有任何错误。但是宽恕仍在这里...有人可以帮助吗?
为什么宽恕仍在这里?为什么不删除?我需要进行预检查吗?为什么我对此没有任何例外?
谢谢。