Skip to content

Commit

Permalink
Remove --single-transaction flag
Browse files Browse the repository at this point in the history
This flag is causing issues and is likely not needed for our purposes
  • Loading branch information
krobison10 authored Feb 29, 2024
1 parent 95acfbd commit f150eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ runs:
pwd1=${{ inputs.password1 }};
db1=${{ inputs.database1 }};
echo "Connecting to DB1"
mysqldump --defaults-extra-file=<(printf '[client]\nuser = %s\npassword = %s\nhost = %s' $user1 $pwd1 $host1) -d --skip-add-drop-table --skip-add-drop-database --single-transaction $db1 | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' | sed -e 's/Host: .* //' | sed -e 's/-- Dump completed on .*//' > db1.sql
mysqldump --defaults-extra-file=<(printf '[client]\nuser = %s\npassword = %s\nhost = %s' $user1 $pwd1 $host1) -d --skip-add-drop-table --skip-add-drop-database $db1 | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' | sed -e 's/Host: .* //' | sed -e 's/-- Dump completed on .*//' > db1.sql
if [[ $? -ne 0 ]]; then
echo >&2 "SQL error"
exit 1
Expand All @@ -56,7 +56,7 @@ runs:
pwd2=${{ inputs.password2 }}
db2=${{ inputs.database2 }}
echo "Connecting to DB2"
mysqldump --defaults-extra-file=<(printf '[client]\nuser = %s\npassword = %s\nhost = %s' $user2 $pwd2 $host2) -d --skip-add-drop-table --skip-add-drop-database --single-transaction $db2 | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' | sed -e 's/Host: .* //' | sed -e 's/-- Dump completed on .*//' > db2.sql
mysqldump --defaults-extra-file=<(printf '[client]\nuser = %s\npassword = %s\nhost = %s' $user2 $pwd2 $host2) -d --skip-add-drop-table --skip-add-drop-database $db2 | sed -e 's/AUTO_INCREMENT=[[:digit:]]* //' | sed -e 's/Host: .* //' | sed -e 's/-- Dump completed on .*//' > db2.sql
if [[ $? -ne 0 ]]; then
echo >&2 "SQL error"
exit 1
Expand Down

0 comments on commit f150eb5

Please sign in to comment.