Removes existing migrations from django, clears the sqlite database, and re-runs migrations.
Place the script on your $PATH
. Have django and python installed.
wget: wget https://gist.githubusercontent.com/hhenrichsen/4276164d086450c4870b226246d7cddb/raw/18f1f8ee1e5677aebdafdabe3433696166f2eb6a/django-remigrate
curl: curl https://gist.githubusercontent.com/hhenrichsen/4276164d086450c4870b226246d7cddb/raw/18f1f8ee1e5677aebdafdabe3433696166f2eb6a/django-remigrate -o django-remigrate -s
Run django-remigrate
once the script is in your path.
To bypass the warning about losing progress, run django-remigrate -f
.