From 9c374335351234dd99d982ce553bca3440d4737d Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Tue, 31 Oct 2023 15:06:09 +0500 Subject: [PATCH] build: capturing new migrations. --- .github/workflows/capture_new_migrations.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/capture_new_migrations.yml b/.github/workflows/capture_new_migrations.yml index c464cb03dec9..4340a42bd82e 100644 --- a/.github/workflows/capture_new_migrations.yml +++ b/.github/workflows/capture_new_migrations.yml @@ -122,7 +122,7 @@ jobs: - name: Verify executed migrations on master. id: capture1 run: | - query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;) + query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1;" edxapp;) echo "Query Result: $query_result" echo "query_result=${query_result}" >> $GITHUB_ENV echo "echo ${{env.query_result}}" @@ -157,7 +157,7 @@ jobs: - name: Verify executed migrations on branch. id: capture2 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 1;" edxapp;) echo "Query Result: query_result1" echo "query_result1=${query_result1}" >> $GITHUB_ENV shell: bash @@ -170,7 +170,7 @@ jobs: number2=${{ env.query_result1 }} # Perform subtraction diff=$((number1 - number2)) - result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select * from django_migrations ORDER by -id limit $diff ;" edxapp;) + result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select 1 ;" edxapp;) echo "Query Result: $result" echo "$result" shell: bash