mirror of https://github.com/interlegis/sapl.git
Eliseu Egewarth
7 years ago
2 changed files with 9 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
#!/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 |
Loading…
Reference in new issue