I have a problem with django migrations. I get this error:
django.db.migrations.exceptions.NodeNotFoundError: Migration user.0050_merge_20170523_1254 dependencies reference nonexistent parent node ('user', '0049_auto_20170519_1934')
I fix the errors, deleting some lines but after fix all this errors, I get other:
ValueError: Could not find common ancestor of {'0050_merge_20170523_1254', '0007_auto_20170524_1540'}
I cant solve that. I can drop database and do makemigrations again... but in production environment I want know how fix correctly, without drop database haha.
Thanks!
Next time when you rollback:
./manage.py migrate yourAppName 0012
(this is just the example number) and hit enterDo not just delete migrations! Hope that helps.