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:
parent
e48d822772
commit
9a9adc0d99
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue