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 aba4737 commit cf48e69
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,17 @@ jobs:
- name: Verify executed migrations on branch.
run: |
query_result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;)
echo "Query Result: $query_result"
echo "$query_result"
query_result1=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select count(*) from django_migrations;" edxapp;)
echo "Query Result: $query_result1"
echo "$query_result1"
shell: bash

- name: Verify difference
run: |
diff = $query_result1 - $query_result
result=$(mysql -h 127.0.0.1 -uedxapp001 -ppassword -e "select * from django_migrations ORDER by -id limit $diff ;" edxapp;)
echo "Query Result: result"
echo "result"
shell: bash


Expand Down

0 comments on commit cf48e69

Please sign in to comment.