Skip to content

Commit

Permalink
Fixed error with sqlite databases
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelJonkman committed Aug 26, 2024
1 parent 6fe9bf5 commit 4a234b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "micheljonkman/laravel-declarative-schema",
"version": "1.4",
"version": "1.4.1",
"description": "",
"keywords": [
"MichelJonkman",
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/SchemaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public function boot(Schema $schema, SchemaMigrator $schemaMigrator, Application

'connection' => [
'dbname' => $config['database'],
'user' => $config['username'],
'password' => $config['password'],
'host' => $config['host'],
'user' => $config['username'] ?? '',
'password' => $config['password'] ?? '',
'host' => $config['host'] ?? '',
'driver' => 'pdo_' . $config['driver'],
]
]);
Expand Down

0 comments on commit 4a234b1

Please sign in to comment.