Skip to content

Commit a72262a

Browse files
authored
fix(MigrateDumpCommand): Workaround Mysql warning about GTIDs using --set-gtid-purged=OFF switch. (#17)
1 parent 6d346e5 commit a72262a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/MigrateDumpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private static function mysqlCommandPrefix(array $db_config) : string
238238
// Excluding any hash or date suffix since only current is relevant.
239239

240240
return 'mysqldump --routines --skip-add-drop-table'
241-
. ' --skip-add-locks --skip-comments --skip-set-charset --tz-utc'
241+
. ' --skip-add-locks --skip-comments --skip-set-charset --tz-utc --set-gtid-purged=OFF'
242242
. ' --host=' . escapeshellarg($db_config['host'])
243243
. ' --port=' . escapeshellarg($db_config['port'])
244244
. ' --user=' . escapeshellarg($db_config['username'])

0 commit comments

Comments
 (0)