File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,13 @@ final protected function getEnvironmentSetUp($app): void
6464 $ config ->set ('database.connections.pgsql.prefix ' , 'tests ' );
6565 $ config ->set ('database.connections.mysql.prefix ' , 'tests ' );
6666
67- /** @var array<string, mixed> $mysql */
68- $ mysql = $ config ->get ('database.connections.mysql ' );
69- $ config ->set ('database.connections.mariadb ' , array_merge ($ mysql , [
70- 'port ' => 3307 ,
71- ]));
67+ if (!$ config ->has ('database.connections.mariadb ' )) {
68+ /** @var array<string, mixed> $mysql */
69+ $ mysql = $ config ->get ('database.connections.mysql ' );
70+ $ config ->set ('database.connections.mariadb ' , $ mysql );
71+ }
72+
73+ $ config ->set ('database.connections.mariadb.port ' , 3307 );
7274
7375 // new table name's
7476 $ config ->set ('wallet.transaction.table ' , 'transaction ' );
You can’t perform that action at this time.
0 commit comments