Skip to content

Instantly share code, notes, and snippets.

@rafaelstz
Created October 28, 2015 19:21
Show Gist options
  • Save rafaelstz/d70d4b01016b59ba7f1f to your computer and use it in GitHub Desktop.
Save rafaelstz/d70d4b01016b59ba7f1f to your computer and use it in GitHub Desktop.
Remove checks to FOREIGN_KEY
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE my_first_table_to_drop;
DROP TABLE my_second_table_to_drop;
SET FOREIGN_KEY_CHECKS=1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment