Last active
January 12, 2017 08:41
-
-
Save citmusa/d1758486dfa08f4244a0 to your computer and use it in GitHub Desktop.
delete heroku - postgress table
This file contains hidden or 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
python manage.py shell: | |
>>> sql = '''drop table mytable cascade; | |
... drop table mytable2; ''' | |
>>> | |
>>> from django.db import connections, transaction | |
>>> cursor = connections['default'].cursor() | |
>>> cursor.execute(sql) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment