La forma simple sería deshabilitar la verificación de clave externa; realice los cambios y luego vuelva a habilitar la verificación de clave externa.
SET FOREIGN_KEY_CHECKS=0; -- to disable them
SET FOREIGN_KEY_CHECKS=1; -- to re-enable them
La forma simple sería deshabilitar la verificación de clave externa; realice los cambios y luego vuelva a habilitar la verificación de clave externa.
SET FOREIGN_KEY_CHECKS=0; -- to disable them
SET FOREIGN_KEY_CHECKS=1; -- to re-enable them