Skip to content

Commit

Permalink
build: capturing new migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Oct 30, 2023
1 parent ec1e12e commit d9a053d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,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 1 ;" edxapp
mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1 ;" edxapp; "select app,name from django_migrations;";
- name: Checkout branch repo
uses: actions/checkout@v2
Expand All @@ -144,13 +144,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 branch.
run: |
mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1 ;" edxapp
mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1 ;" edxapp; "select app,name from django_migrations;";
# This job aggregates test results. It's the required check for branch protection.
Expand Down

0 comments on commit d9a053d

Please sign in to comment.