Google News
logo
Django - Interview Questions
Explain the migration in Django and how you can do in SQL?
Migration in Django is to make changes to your models like deleting a model, adding a field, etc. into your database schema.  There are several commands you use to interact with migrations.
 
* Migrate
* Makemigrations
* Sqlmigrate

To do the migration in SQL, you have to print the SQL statement for resetting sequences for a given app name.
Advertisement