fix: use django 2.2 makemigrations --check (#4351)
This commit is contained in:
parent
b8aa52f33a
commit
1dab3b1086
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -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..."
|
||||
|
|
3
.github/workflows/ci-run-tests.yml
vendored
3
.github/workflows/ci-run-tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue