Skip to content

Commit

Permalink
Update MySqlSchemaState.php to support MariaDB dump (#35184)
Browse files Browse the repository at this point in the history
* Update MySqlSchemaState.php

isMaria db logic was incorrect, because those params not work in MariaDB so it should only append those when it's not MariaDB

* Update MySqlSchemaState.php

Style fix
  • Loading branch information
rannien authored Nov 11, 2020
1 parent 97488b3 commit 2d503a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/MySqlSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function baseDumpCommand()
{
$command = 'mysqldump '.$this->connectionString().' --skip-add-locks --skip-comments --skip-set-charset --tz-utc';

if ($this->connection->isMaria()) {
if (! $this->connection->isMaria()) {
$command .= ' --column-statistics=0 --set-gtid-purged=OFF';
}

Expand Down

0 comments on commit 2d503a5

Please sign in to comment.