Skip to content

Commit

Permalink
Use mariadb executable where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
codebymikey authored Oct 7, 2024
1 parent 6a7b0bf commit 0e5cdea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Sql/SqlMariaDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class SqlMariaDB extends SqlMysql
{
use ExecTrait;

public function command(): string
{
if (self::programExists('mariadb')) {
return 'mariadb';
}
return parent::command();
}

public function dumpProgram(): string
{
if (self::programExists('mariadb-dump')) {
Expand Down

0 comments on commit 0e5cdea

Please sign in to comment.