Reset the Whole Database in Djangosqlite3 and then delete all the migrations folders inside all the apps. After deleting the migrations folders, we can remake the migrations and migrate them using two commands; namely, python manage.py makemigrations and python manage.py migrate .
You can do the same with Django 1.7+ also:
python manage.py migrate <app> zero
This clears <app>
from migration history and drops all tables of <app>
See django docs for more info.
you can also use the version number:
python manage.py migrate <app> 0002
Source: https://docs.djangoproject.com/en/1.7/ref/django-admin/#django-admin-migrate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With