Created
February 12, 2013 20:38
-
-
Save minism/4773163 to your computer and use it in GitHub Desktop.
Truncate autopopulated django tables to prepare loaddata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET FOREIGN_KEY_CHECKS=0; | |
truncate table `auth_user_user_permissions`; | |
truncate table `auth_permission`; | |
truncate table `django_content_type`; | |
SET FOREIGN_KEY_CHECKS=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment