I have two tables, each referring the other (created by django ORM).
Each table references the other table.
Now I want to write a script that deletes all tables, but I’m failing to do so since I get foreign key violation
I’m doing
mysql> delete from table1
mysql> delete from table2
I know I can ignore the checks, but the problem is that these checks were generated by django with cryptic names
thanks.
You can do this –
Documentation: foreign_key_checks.