fix: use django 2.2 makemigrations --check (#4351)

This commit is contained in:
Robert Sparks 2022-08-22 12:37:04 -05:00 committed by GitHub
parent b8aa52f33a
commit 1dab3b1086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -130,10 +130,8 @@ jobs:
./ietf/manage.py check
./ietf/manage.py migrate
echo "Validating migrations..."
MSG=$(ietf/manage.py makemigrations 2>&1)
if ! ( echo ${MSG} | grep -q "^No changes detected$") ; then
if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then
echo "Model changes without migrations found."
echo ${MSG}
exit 1
fi
echo "Running tests..."

View file

@ -44,8 +44,7 @@ jobs:
./ietf/manage.py check
./ietf/manage.py migrate
echo "Validating migrations..."
MSG=$(ietf/manage.py makemigrations 2>&1)
if ! ( echo ${MSG} | grep -q "^No changes detected$") ; then
if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then
echo "Model changes without migrations found."
echo ${MSG}
exit 1