From f150eb5cedbe636622f2071289cca89160607061 Mon Sep 17 00:00:00 2001 From: Kyler Robison Date: Thu, 29 Feb 2024 12:42:08 -0800 Subject: [PATCH] Remove --single-transaction flag This flag is causing issues and is likely not needed for our purposes --- action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index f12f78d..3fafbf2 100644 --- a/action.yaml +++ b/action.yaml @@ -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 @@ -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