purpose of migration folder in django

Solutions on MaxInterview for purpose of migration folder in django by the best coders in the world

showing results for - "purpose of migration folder in django"
Liah
10 Jul 2019
1migrations in django 
2
3Migration is a way of applying changes that we have made to a model, into the database schema. 
4Django creates a migration file inside the migration folder for each model to create the table schema, 
5and each table is mapped to the model of which migration is created.
6
7makemigrations : It is used to create a migration file that contains code for the tabled schema of a model.
8migrate : It creates table according to the schema defined in the migration file.
9Migration files are the history of your database.
10