Skip to content

Commit

Permalink
[8.x] Schema Dump: check error message with command option instead of…
Browse files Browse the repository at this point in the history
… table name (#34233)

* check error message with command option instead of table name

Command option: column-statistics
Table name :  column_statistics

* Update MySqlSchemaState.php

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
roberto-butti and taylorotwell authored Sep 9, 2020
1 parent 8652685 commit 6decd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Schema/MySqlSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function executeDumpProcess(Process $process, $output, array $variable
try {
$process->mustRun($output, $variables);
} catch (Exception $e) {
if (Str::contains($e->getMessage(), 'column_statistics')) {
if (Str::contains($e->getMessage(), ['column-statistics', 'column_statistics'])) {
return $this->executeDumpProcess(Process::fromShellCommandLine(
str_replace(' --column-statistics=0', '', $process->getCommandLine())
), $output, $variables);
Expand Down

0 comments on commit 6decd44

Please sign in to comment.