📜  在执行 Sqlalchemy 升级时禁用外键检查 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:17.133000             🧑  作者: Mango

代码示例1
if you are user mysql, you can connect to mysql and use 
"SET GLOBAL FOREIGN_KEY_CHECKS = 0;" 
delete the db table you want, and again 
"SET GLOBAL FOREIGN_KEY_CHECKS = 1;"
This value verifies foreign relationships in the db tables.