Skip to content

Commit

Permalink
Update SyncDatabaseCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
toyi committed Jun 29, 2023
1 parent 8875bbe commit 377bbb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SyncDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ protected function remoteDump()
{
$database_config = Config::get('sync-database.database');
$ssh_config = Config::get('sync-database.ssh');
$bin_config = Config::get('sync-database.bin');

if (!isset($ssh_config['timeout'])) {
$ssh_config['timeout'] = 300;
Expand Down Expand Up @@ -164,7 +165,7 @@ protected function remoteDump()

$dump_cmds = [];
$dump_cmd_base = [];
$dump_cmd_base[] = 'mysqldump';
$dump_cmd_base[] = $bin_config['mysqldump'] ?? 'mysqldump';
$dump_cmd_base[] = '--max_allowed_packet=' . $database_config['max_allowed_packet'];
$dump_cmd_base[] = '--no-tablespaces';
$dump_cmd_base[] = '-h ' . $database_config['host'];
Expand Down

0 comments on commit 377bbb6

Please sign in to comment.