Commit e9b36521 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'hoverht-master-patch-01078' into 'master'

fix: display missing django migrations

See merge request ci/templates!97
parents b00f6162 fab5dcff
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -14,7 +14,8 @@ python:django:migrations:
  script:
    - STATE="$(python manage.py makemigrations --dry-run)"
    - |
      if [ ! "$STATE" = "No changes detected" ]; then
        echo "[!] You have model changes for which no migrations have been created."
      if [ ! "${STATE}" = "No changes detected" ]; then
        echo "[!] You have model changes for which no migrations have been created:"
        echo "${STATE}"
        exit 1
      fi