From f3ff04dac3b18d14acd1eb6075e1f9afbb9ef764 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 31 Oct 2023 22:45:26 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index 2b31c7ea3d82..f23eb3756174 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -115,7 +115,7 @@ jobs: STUDIO_CFG: lms/envs/minimal.yml run: | echo "Running the LMS migrations." - ./manage.py lms migrate + ./manage.py lms migrate social_django # echo "Running the CMS migrations." # ./manage.py cms migrate @@ -140,7 +140,8 @@ jobs: id: capture1 shell: bash run: | - query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;;" edxapp;) + query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;) + echo "echo $query_result1" numeric_result=$(echo "query_result1" | sed 's/[^0-9]*//g') echo "Numeric Result: $numeric_result" echo "FIRST_QUERY=$numeric_result" >> $GITHUB_ENV