Skip to content

Commit

Permalink
Fix db:show's --counts option (#51140)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchunyang authored Apr 19, 2024
1 parent 22f4864 commit a4bd642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Console/ShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function tables(ConnectionInterface $connection, Builder $schema)
'table' => $table['name'],
'schema' => $table['schema'],
'size' => $table['size'],
'rows' => $this->option('counts') ? $connection->table($table->getName())->count() : null,
'rows' => $this->option('counts') ? $connection->table($table['name'])->count() : null,
'engine' => $table['engine'],
'collation' => $table['collation'],
'comment' => $table['comment'],
Expand Down

0 comments on commit a4bd642

Please sign in to comment.