diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index 41d0b4a329fb..d44405a72a1e 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -119,9 +119,13 @@ jobs: STUDIO_CFG: lms/envs/minimal.yml run: | echo "Running the LMS migrations." - ./manage.py lms showmigrations + ./manage.py lms migrate echo "Running the CMS migrations." - ./manage.py cms showmigrations + ./manage.py cms migrate + + - name: Verify executed migrations on master. + run: | + mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations ;" edxapp - name: Checkout branch repo uses: actions/checkout@v2 @@ -148,6 +152,11 @@ jobs: echo "Running the CMS migrations." ./manage.py cms showmigrations + - name: Verify executed migrations on branch. + run: | + mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations ;" edxapp + + # This job aggregates test results. It's the required check for branch protection. # https://github.com/marketplace/actions/alls-green#why # https://github.com/orgs/community/discussions/33579