Skip to content

Commit

Permalink
Add --plan option to migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 11, 2024
1 parent 70359b3 commit f9cb94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-migrations-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit f9cb94b

Please sign in to comment.