After renaming an application, Will you still have problems with migrations?
Yes, but you can remove it and do a fake migration.
![](https://lh6.googleusercontent.com/fw7n2HgJHrpqh0-UwMhEDjQdVh0rwfQ-1LJizLWe2lFw0jEtcet7hDXa1sGnnQb9RaaKIU8DrbPu3pxOtcCezjwo5Jhs0oqVZGfcLhof__MU92VFuWdh8U7dFBpPMZytPtOEfWIP03kU6apz599rO_4=w400-h266)
Remove all migrations files
find . -path "**/migrations/*.py" -not -name "__init_.py" -not -name "case_insensitive.py" -delete && find . -path "**/migrations/*.pyc" -delete
python manage.py makemigrations
python manage.py migrate --fake
![](https://lh6.googleusercontent.com/JIzp4nHsTj5xjEDiJ2MbtYz7bXA5zepue3IRiAjbds06rBZTDNJSHn30_F1HfQ0WMYwT7gGgUeCasxyrvVzkZ6jlxPSGOULlRTrAjzWdpL4kQ0KOmQpUvG1APf7lh9iH_pIdkZA-7ia7-TfSXL_Qh_8=w400-h139)
Now everything seems to be working, we may still run into problems.
Yes, but you can remove it and do a fake migration.
Remove all migrations files
find . -path "**/migrations/*.py" -not -name "__init_.py" -not -name "case_insensitive.py" -delete && find . -path "**/migrations/*.pyc" -delete
python manage.py makemigrations
python manage.py migrate --fake
Now everything seems to be working, we may still run into problems.
Comments
Post a Comment