Skip to content

Commit

Permalink
fix(MigrateDumpCommand::mysqlDump): Correct variations in spacing aft…
Browse files Browse the repository at this point in the history
…er culling AUTO_INCREMENT values.
  • Loading branch information
Paul Rogers committed Apr 23, 2019
1 parent 57dd004 commit 6201dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/MigrateDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static function mysqlDump(array $db_config, string $schema_sql_path) : i
if (false === $schema_sql) {
return 1;
}
$schema_sql = preg_replace('/(\b)AUTO_INCREMENT=[0-9]+/iu', '\1', $schema_sql);
$schema_sql = preg_replace('/\s+AUTO_INCREMENT=[0-9]+/iu', '', $schema_sql);
if (false === file_put_contents($schema_sql_path, $schema_sql)) {
return 1;
}
Expand Down Expand Up @@ -189,4 +189,4 @@ private static function sqliteDump(array $db_config, string $schema_sql_path) :

return $exit_code;
}
}
}

0 comments on commit 6201dd7

Please sign in to comment.