make default sqlite database path relative

This commit is contained in:
Boy132 2024-06-04 13:26:05 +02:00 committed by GitHub
parent 33f10cbcb9
commit 1c66681c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@ class DatabaseSettingsCommand extends Command
} elseif ($this->variables['DB_CONNECTION'] === 'sqlite') { } elseif ($this->variables['DB_CONNECTION'] === 'sqlite') {
$this->variables['DB_DATABASE'] = $this->option('database') ?? $this->ask( $this->variables['DB_DATABASE'] = $this->option('database') ?? $this->ask(
'Database Path', 'Database Path',
config('database.connections.sqlite.database', database_path('database.sqlite')) config('database.connections.sqlite.database', 'database.sqlite')
); );
} }