[Django]-Django migration dependencies reference nonexistent parent node

6👍

Next time when you rollback:

  1. Go into the migrations folder in your app.
  2. Look for the migration file where you would like to go back to. (for example “0012_post_category.py”)
  3. go in the terminal write: ./manage.py migrate yourAppName 0012 (this is just the example number) and hit enter
  4. if everything goes well. Delete the other migrations which came after this number in your migrations folder.

Do not just delete migrations! Hope that helps.

Leave a comment