[Fixed]-Django Migration difference between dev and test postgres databases

1👍

If this is something you can do manually (add one field and one table), you can set the migrations as completed in the migration table (either all of them, or just the ones that are causing issues).

👤paqash

0👍

This might help you out:

https://www.algotech.solutions/blog/python/django-migrations-and-how-to-manage-conflicts/

As you are the single developer for the project, python manage.py migrate should be fine if you are pushing migrations in the git repo.

Or you can ignore migrations folder by adding it to .gitignore and run python manage.py makemigrations on test server every time db is modified and finally u can execute python manage.py migrate to reflect changes in the db.

Leave a comment