Browse Source

Add script to reset all migrations

pull/6/head
Marcio Mazza 10 years ago
parent
commit
dadeaf9f21
  1. 9
      scripts/reset_all_migrations.sh

9
scripts/reset_all_migrations.sh

@ -0,0 +1,9 @@
#!/bin/bash
# Sends all django migrations to the trash bin
# Requires trash-cli. To install:
# sudo apt-get install trash-cli
find -name 00*.py | grep /migrations/ | xargs trash-put
# Make all migrations from scratch
./manage.py makemigrations
Loading…
Cancel
Save