From dadeaf9f21a325c656eef9d513a012876b65677e Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 6 Jul 2015 11:24:46 -0300 Subject: [PATCH] Add script to reset all migrations --- scripts/reset_all_migrations.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/reset_all_migrations.sh diff --git a/scripts/reset_all_migrations.sh b/scripts/reset_all_migrations.sh new file mode 100755 index 000000000..53e274fe9 --- /dev/null +++ b/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