To merge exist migration files into one file:
- Remove
django_migrationrecords table (manually) - Remove all migration files
- run
python manage.py migrate --fakecommand - run
python manage.py makemigrationscommand - run
python manage.py migrate --fake-initialcommand - run
python manage.py migrate contenttypescommand - and finally, for chacking if everything is just fine, run
python manage.py migratecommand
Now, check django_migration table and make sure all new files added in this table