I have 5 migration files created. But when I run ./manage.py migrate
it always tries to apply the migrations file "3". Even though the latest one is file 5.
How can I fix this issue?
I have tried:
./manage.py makemigrations app_name
./manage.py migrate app_name
./manage.py migrate --run-syncdb
Also, I checked the dbshell, and there is a table already created for the model which is part of migrations file 5.