mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Previously this test was correctly detecting missing migrations, but not causing the build to fail.
		
			
				
	
	
		
			12 lines
		
	
	
		
			327 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			327 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
set -e
 | 
						|
echo 'Testing whether migrations are consistent with models'
 | 
						|
if ./manage.py makemigrations -e --dry-run; then
 | 
						|
    echo
 | 
						|
    echo 'ERROR: Migrations are not consistent with models!  Fix with `./manage.py makemigrations`.'
 | 
						|
    echo
 | 
						|
    exit 1
 | 
						|
else
 | 
						|
    echo "Success!  Migrations are consistent with models."
 | 
						|
fi
 |