Skip to content

Commit cabf7c2

Browse files
authored
Adopt to yiisoft/db #343 (#137)
1 parent 7a88246 commit cabf7c2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/Schema.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ protected function findConstraints(TableSchemaInterface $table): void
366366
*
367367
* @throws Exception|InvalidConfigException|Throwable
368368
*
369-
* @return array all table names in the database. The names have NO schema name prefix.
369+
* @return array All table names in the database. The names have NO schema name prefix.
370370
*/
371371
protected function findTableNames(string $schema = ''): array
372372
{
@@ -376,12 +376,7 @@ protected function findTableNames(string $schema = ''): array
376376
$sql .= ' FROM ' . $this->db->getQuoter()->quoteSimpleTableName($schema);
377377
}
378378

379-
$tableNames = $this->db->createCommand($sql)->queryColumn();
380-
if (!$tableNames) {
381-
return [];
382-
}
383-
384-
return $tableNames;
379+
return $this->db->createCommand($sql)->queryColumn();
385380
}
386381

387382
/**

0 commit comments

Comments
 (0)