makemigrations <my_app> | Generate migrations for my_app |
makemigrations | Generate migrations for all apps |
makemigrations --merge | Resolve migration conflicts for all apps |
makemigrations --merge <my_app> | Resolve migration conflicts for my_app |
makemigrations --name <migration_name> <my_app> | Generate a migration for my_app with the name migration_name |
migrate <my_app> | Apply pending migrations of my_app to the database |
migrate | Apply all pending migrations to the database |
migrate <my_app> <migration_name> | Apply or unapply up to migration_name |
migrate <my_app> zero | Unapply all migrations in my_app |
sqlmigrate <my_app> <migration_name> | Prints the SQL for the named migration |
showmigrations | Shows all migrations for all apps |
showmigrations <my_app> | Shows all migrations in my_app |