mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 09:57:30 +03:00 
			
		
		
		
	check pending migration (#840)
This commit is contained in:
		
							parent
							
								
									43971a2c3a
								
							
						
					
					
						commit
						ab4686f519
					
				| 
						 | 
				
			
			@ -16,3 +16,6 @@ cd project_name
 | 
			
		|||
 | 
			
		||||
# run the project's tests
 | 
			
		||||
docker-compose -f dev.yml run django python manage.py test
 | 
			
		||||
 | 
			
		||||
# return non-zero status code if there are migrations that have not been created
 | 
			
		||||
docker-compose -f dev.yml run django python manage.py makemigrations --dry-run --check || { echo "ERROR: there were changes in the models, but migration listed above have not been created and are not saved in version control"; exit 1; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user