From f9cb94b41b9ea14eff6a8bae9fe9efadd48645a9 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 11 Oct 2024 14:46:49 +0200 Subject: [PATCH] Add --plan option to migrate --- .github/workflows/backend-migrations-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend-migrations-check.yaml b/.github/workflows/backend-migrations-check.yaml index 2e24cba92f..8a5484d4c7 100644 --- a/.github/workflows/backend-migrations-check.yaml +++ b/.github/workflows/backend-migrations-check.yaml @@ -60,7 +60,7 @@ jobs: working-directory: ${{ env.backend-directory }} run: | export $(grep -v '^#' .env | xargs) - python manage.py migrate --check + python manage.py migrate --check --plan enterprise-migrations-check: runs-on: ubuntu-20.04 @@ -115,5 +115,5 @@ jobs: working-directory: ${{ env.backend-directory }} run: | export $(grep -v '^#' .env | xargs) - poetry run python manage.py migrate --check --settings=${{ env.enterprise-backend-settings-module }} + poetry run python manage.py migrate --check --plan --settings=${{ env.enterprise-backend-settings-module }} if [ $? -ne 0 ]; then echo "::error Migrations were not applied, please run the migrate command." && exit 1; fi