Skip to content

Commit e107a69

Browse files
committed
Replace duplicate driver name by the connection name
1 parent 504f893 commit e107a69

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/Illuminate/Database/Console/DatabaseInspectionCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
use Illuminate\Console\Command;
66
use Illuminate\Database\ConnectionInterface;
7-
use Illuminate\Database\MariaDbConnection;
8-
use Illuminate\Database\MySqlConnection;
9-
use Illuminate\Database\PostgresConnection;
10-
use Illuminate\Database\SQLiteConnection;
11-
use Illuminate\Database\SqlServerConnection;
127
use Illuminate\Support\Arr;
138

149
abstract class DatabaseInspectionCommand extends Command

src/Illuminate/Database/Console/ShowCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function handle(ConnectionResolverInterface $connections)
4646
'platform' => [
4747
'config' => $this->getConfigFromDatabase($database),
4848
'name' => $connection->getDriverTitle(),
49-
'driver' => $connection->getDriverName(),
49+
'connection' => $connection->getName(),
5050
'version' => $connection->getServerVersion(),
5151
'open_connections' => $this->getConnectionCount($connection),
5252
],
@@ -160,7 +160,7 @@ protected function displayForCli(array $data)
160160
$this->newLine();
161161

162162
$this->components->twoColumnDetail('<fg=green;options=bold>'.$platform['name'].'</>', $platform['version']);
163-
$this->components->twoColumnDetail('Driver', Arr::get($platform['config'], 'driver'));
163+
$this->components->twoColumnDetail('Connection', Arr::get($platform['config'], 'connection'));
164164
$this->components->twoColumnDetail('Database', Arr::get($platform['config'], 'database'));
165165
$this->components->twoColumnDetail('Host', Arr::get($platform['config'], 'host'));
166166
$this->components->twoColumnDetail('Port', Arr::get($platform['config'], 'port'));

0 commit comments

Comments
 (0)