我有两张桌子。
tableone:id,tabletwo_idtabletwo:id,tableone_id结构是这样的。它们使用外键连接,但现在我根本无法删除这些表。我的意思是 …
您必须首先删除外键约束,表格时。
Schema::table('tabletwo', function(Blueprint $table) { $table->dropForeign('tabletwo_table_one_id_foreign'); }); Schema::drop('tabletwo');