-
-
Save Yogendra0Sharma/1948654aa2b0e62825af531508a11e39 to your computer and use it in GitHub Desktop.
delete heroku - postgress table
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
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