Skip to content

Commit

Permalink
fix mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Mar 12, 2024
1 parent fc75bdd commit b8f5a43
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/Infra/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ final protected function getEnvironmentSetUp($app): void
$config->set('database.connections.pgsql.prefix', 'tests');
$config->set('database.connections.mysql.prefix', 'tests');

/** @var array<string, mixed> $mysql */
$mysql = $config->get('database.connections.mysql');
$config->set('database.connections.mariadb', array_merge($mysql, [
'port' => 3307,
]));
if (!$config->has('database.connections.mariadb')) {
/** @var array<string, mixed> $mysql */
$mysql = $config->get('database.connections.mysql');
$config->set('database.connections.mariadb', $mysql);
}

$config->set('database.connections.mariadb.port', 3307);

// new table name's
$config->set('wallet.transaction.table', 'transaction');
Expand Down

0 comments on commit b8f5a43

Please sign in to comment.