test-migrations: Fix inverted check.

This commit is contained in:
Tim Abbott 2017-02-10 16:40:55 -08:00
parent 1fbc3b508a
commit 0564bebdbe
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
echo 'Testing whether migrations are consistent with models'
if ./manage.py makemigrations --check --dry-run; then
if ! ./manage.py makemigrations --check --dry-run; then
echo
echo 'ERROR: Migrations are not consistent with models! Fix with `./manage.py makemigrations`.'
echo