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

fix: display missing django migrations

parent b00f6162
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