mirror of https://github.com/interlegis/sapl.git
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
8 lines
244 B
7 years ago
|
#!/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
|