mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 20:11:34 +03:00
Ensure no DB driver config falls back to SQLite
This commit is contained in:
parent
9b75e076b5
commit
92e831175f
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ return (static function (): array {
|
||||||
'mssql' => '1433',
|
'mssql' => '1433',
|
||||||
default => '3306',
|
default => '3306',
|
||||||
};
|
};
|
||||||
$resolveConnection = static fn () => match ($driver) {
|
$resolveConnection = static fn () => match (true) {
|
||||||
'sqlite' => [
|
$driver === null || $driver === 'sqlite' => [
|
||||||
'driver' => 'pdo_sqlite',
|
'driver' => 'pdo_sqlite',
|
||||||
'path' => 'data/database.sqlite',
|
'path' => 'data/database.sqlite',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Reference in a new issue