mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 12:10:34 +09:00
fix: change how database type is checked #950
This commit is contained in:
committed by
Attila Jozsef Kerekes
parent
198ffd7665
commit
5c2501c1a7
@@ -123,7 +123,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function setupDatabase(): void
|
||||
{
|
||||
$db_type = env('DB_CONNECTION');
|
||||
$db_type = config()->get('database.default');
|
||||
|
||||
if ($db_type == 'sqlite' && ! is_file(database_path('app.sqlite'))) {
|
||||
touch(database_path('app.sqlite'));
|
||||
|
||||
Reference in New Issue
Block a user