1 | echo ".tables" | python manage.py dbshell | tr " " "\n" | grep myapp | sed 's/^/DROP TABLE /g' | sed 's/$/;/g' | python manage.py dbshell
|
More like this
- grep and delete sqlite tables by kifkif 3 years, 5 months ago
- Drop all tables in MySQL database by mpasternacki 3 years, 3 months ago
- fast table flush without raw SQL by dsblank 3 years, 4 months ago
- Creating MySQL Alter table commands for Foreign Keys by vidyanand 4 years, 11 months ago
- Table Creation Using ORM Standalone by EliAndrewC 5 years, 3 months ago
Comments
Improved version here
#