I was trying to remove on my dev machine old migration files with
manage.py myapp zero
But it failed at some point and I messed up. I have a project with ~1000 migration files. Unfortunately I have no backups for my dev sql database. (I have to build everything from scretch)
But on my prodiction system I have also this ~1000 migration files and was wondering if it is possible to delete all migration files and just use the last state. So that each migrations folder has only one migration file left.
Is this possible? This would save my life ...
EDIT: I ended up using this: https://docs.djangoproject.com/en/4.0/topics/migrations/#migration-squashing