更新时间:2023-02-02 22:50:07
你必须把它分成两个 Schema 块,一个创建列,另一个添加 FK.mysql不能同时做这两件事.
You have to break this into two Schema blocks, one creating the columns, the other adding the FKs. mysql can't do both at the same time.
Laravel 迁移自引用外键问题
Laravel迁移自引用外键问题
Laravel 5.1迁移和播种无法截断外键约束中引用的表
Laravel迁移在现有数据库表中添加colum问题
Laravel 5.1 迁移和播种无法截断外键约束中引用的表
Laravel迁移-表前缀问题