Skip to content

Commit

Permalink
fix(MigrateDumpCommand): Workaround Mysql warning about GTIDs using `…
Browse files Browse the repository at this point in the history
…--set-gtid-purged=OFF` switch. (#17)
  • Loading branch information
paulrrogers authored Mar 10, 2020
1 parent 6d346e5 commit a72262a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/MigrateDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private static function mysqlCommandPrefix(array $db_config) : string
// Excluding any hash or date suffix since only current is relevant.

return 'mysqldump --routines --skip-add-drop-table'
. ' --skip-add-locks --skip-comments --skip-set-charset --tz-utc'
. ' --skip-add-locks --skip-comments --skip-set-charset --tz-utc --set-gtid-purged=OFF'
. ' --host=' . escapeshellarg($db_config['host'])
. ' --port=' . escapeshellarg($db_config['port'])
. ' --user=' . escapeshellarg($db_config['username'])
Expand Down

0 comments on commit a72262a

Please sign in to comment.