Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

8 lines
244 B

#!/bin/bash
python manage.py makemigrations --dry-run --exit > /dev/null
MIGRATIONS=$?
[ $MIGRATIONS -eq 0 ] && echo "You have unapplied code change. run 'python manage.py makemigrations'" && exit 1
[ $MIGRATIONS -ne 0 ] && echo "" && exit 0