0
我想用「knex」放棄一些表,但我有一個錯誤Cannot delete or update a parent row: a foreign key constraint fails
當我嘗試與外鍵刪除表:JS Knex:讓外鍵的表
knex.schema.dropTableIfExists(name);
我可以使用dropForeign()功能放棄外鍵,但我需要知道外鍵名稱。
如何使用'knex'獲得外鍵名稱?