Migrations allow you to convert from one database schema to another while saving current data to the database. Django allows you to create migrations using the python manage.py makemigrations
Each time makemigrations run makemigrations , a new 000n.. migration file is created based on the changes found in the models.py file.
Sometimes, after making small changes to models.py, I want to run makemigrations, but I do not want a new migration to be created because previous migrations have not been used yet, which allows us to combine them, primarily because they start each migration in the production process it can take a long time when there is a lot of data in the database, so it may be preferable to combine migrations into hands.
Is there a way to allow a new transfer of 000n .. with an existing migration of 000 (n-1) .. ?
django django-migrations
Pranjal mittal
source share