I am having a very similar problem as in the below question: django.db.utils.IntegrityError: (1062, "Duplicate entry '' for key 'slug'")
I also think that the reply marked as accepted will work for me. The problem is that I can't figure how to implement this solution (I was trying to ask in comments to the answer, but I don't have enough reputation).
After reading https://docs.djangoproject.com/en/4.1/ref/migration-operations/, nothing became clearer. I tried to search the Internet for guides on how to edit or copy migrations, but I haven't found anything useful to me, apart from discovering that migrations are/can be also files? Until now, I thought that migration is an action, not a file. I am very new to Django, and the only thing I have ever done with migrations is to just run a basic python manage.py migrate
and python manage.py makemigrations
commands.
Would anyone be able to advise what 'copy migrations.AlterField operation twice,' means? How can I copy a migration? And why does it have .AlterField attached to it? This whole paragraph seems like it might be a solution to my problem, but my knowledge is insufficient to figure out what to do with it...
Could someone please explain how to approach this?