mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[1.10.x] Adjusted documentation of migration related commands.
Backport of d1dbaeaadb from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							59bbacf88d
						
					
				
				
					commit
					70d9effa02
				
			| @@ -16,15 +16,16 @@ The Commands | |||||||
| There are several commands which you will use to interact with migrations | There are several commands which you will use to interact with migrations | ||||||
| and Django's handling of database schema: | and Django's handling of database schema: | ||||||
|  |  | ||||||
| * :djadmin:`migrate`, which is responsible for applying migrations, as well as | * :djadmin:`migrate`, which is responsible for applying and unapplying | ||||||
|   unapplying and listing their status. |   migrations. | ||||||
|  |  | ||||||
| * :djadmin:`makemigrations`, which is responsible for creating new migrations | * :djadmin:`makemigrations`, which is responsible for creating new migrations | ||||||
|   based on the changes you have made to your models. |   based on the changes you have made to your models. | ||||||
|  |  | ||||||
| * :djadmin:`sqlmigrate`, which displays the SQL statements for a migration. | * :djadmin:`sqlmigrate`, which displays the SQL statements for a migration. | ||||||
|  |  | ||||||
| * :djadmin:`showmigrations`, which lists a project's migrations. | * :djadmin:`showmigrations`, which lists a project's migrations and their | ||||||
|  |   status. | ||||||
|  |  | ||||||
| You should think of migrations as a version control system for your database | You should think of migrations as a version control system for your database | ||||||
| schema. ``makemigrations`` is responsible for packaging up your model changes | schema. ``makemigrations`` is responsible for packaging up your model changes | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user