1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 17:04:04 +00:00

Use getPath() in makeConnectionConfig()

makeConnectionConfig() would use database_path() to generate the DB path, which is correct only when the $path static property is null.
This commit is contained in:
lukinovec 2026-05-01 14:27:56 +02:00
parent e48d822772
commit 9a9adc0d99

View file

@ -147,9 +147,7 @@ class SQLiteDatabaseManager implements TenantDatabaseManager
(static::$persistInMemoryConnectionUsing)(new PDO($dsn), $dsn);
}
} else {
$this->validateDatabaseName($databaseName);
$baseConfig['database'] = database_path($databaseName);
$baseConfig['database'] = $this->getPath($databaseName);
}
return $baseConfig;