Skip to content

Commit 1e3a8b7

Browse files
[8.x] Schema Dump: check error message with command option instead of 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]>
1 parent ca7e5d8 commit 1e3a8b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Schema/MySqlSchemaState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function executeDumpProcess(Process $process, $output, array $variable
116116
try {
117117
$process->mustRun($output, $variables);
118118
} catch (Exception $e) {
119-
if (Str::contains($e->getMessage(), 'column_statistics')) {
119+
if (Str::contains($e->getMessage(), ['column-statistics', 'column_statistics'])) {
120120
return $this->executeDumpProcess(Process::fromShellCommandLine(
121121
str_replace(' --column-statistics=0', '', $process->getCommandLine())
122122
), $output, $variables);

0 commit comments

Comments
 (0)