File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments