1π
β
In fact django save the applied datamigration scripts in a table in your database called django_migrations
, so he can track which one is applied and start from the next. So if a script is already applied, he will not be applied again until you delete it from the database.
python manage.py showmigrations --list
This will list all apps in the project and the migrations associated with each app. Also it will but a big X next to the migrations that have already been applied.
To understand more about the django migrations in depth I will recommend this good article
π€Dhia
Source:stackexchange.com