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 75ed777 commit 8124279
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/capture_new_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# 'pinned' is used to install the latest patch version of Django
# within the global constraint i.e. Django==3.2.21 in current case
# because we have global constraint of Django<4.2
django-version: ["pinned", "4.2"]
django-version: ["4.2"]
mongo-version: ["4"]
mysql-version: ["8"]
# excluding mysql5.7 with Django 4.2 since Django 4.2 has
Expand Down Expand Up @@ -160,7 +160,10 @@ jobs:

- name: Verify difference
run: |
diff = $query_result1 - $query_result
number1=$query_result1
number2=$query_result
# 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;)
echo "Query Result: $result"
echo "$result"
Expand Down

0 comments on commit 8124279

Please sign in to comment.