Skip to content

Commit

Permalink
Add --dry-run and --verbosity options to makemigrations
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 11, 2024
1 parent e3302de commit 70359b3
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 @@ -55,7 +55,7 @@ jobs:
working-directory: ${{ env.backend-directory }}
run: |
export $(grep -v '^#' .env | xargs)
python manage.py makemigrations --check
python manage.py makemigrations --check --dry-run --verbosity=3
- name: Check that all migrations were applied
working-directory: ${{ env.backend-directory }}
run: |
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
working-directory: ${{ env.backend-directory }}
run: |
export $(grep -v '^#' .env | xargs)
poetry run python manage.py makemigrations --check --settings=${{ env.enterprise-backend-settings-module }}
poetry run python manage.py makemigrations --check --dry-run --verbosity=3 --settings=${{ env.enterprise-backend-settings-module }}
if [ $? -ne 0 ]; then echo "::error Migrations were not made, please run the makemigrations command." && exit 1; fi
- name: Check that all migrations were applied
working-directory: ${{ env.backend-directory }}
Expand Down

0 comments on commit 70359b3

Please sign in to comment.