Skip to content

Commit 5a1ac9a

Browse files
committed
Migrate to mariadb database driver
As per the update guide [1], this should be comparable to the `mysql` driver. Keep the options the same as the in the database docs [2]. The connection name remains `mysql` because we found this is used in an unknown number of places. We saw most of the tests fail when renaming this to `mariadb` but we don't want to investigate this now. We also thought that we should name this something like technology agnostic and with clear purpose such as `platform_api_db`. [1]: https://laravel.com/docs/11.x/upgrade#dedicated-mariadb-driver [2]: https://laravel.com/docs/11.x/database#read-and-write-connections Bug: T426075
1 parent 58de5b3 commit 5a1ac9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

config/database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
// against the database during the current request cycle,
5656
// any further "read" operations will use the "write" connection.
5757
'sticky' => true,
58-
'driver' => 'mysql',
58+
'driver' => 'mariadb',
5959
'url' => env('DATABASE_URL'),
6060
'port' => env('DB_PORT', '3306'),
6161
'database' => env('DB_DATABASE'),
@@ -89,7 +89,7 @@
8989
// against the database during the current request cycle,
9090
// any further "read" operations will use the "write" connection.
9191
'sticky' => true,
92-
'driver' => 'mysql',
92+
'driver' => 'mariadb',
9393
'url' => env('MW_DATABASE_URL'),
9494
'port' => env('MW_DB_PORT', '3306'),
9595
'database' => env('MW_DB_DATABASE'),

0 commit comments

Comments
 (0)