Skip to content

Commit dcbcb1e

Browse files
author
rotimi
committed
Bug fix to make sure classes are only generated for tables and views in sqlite
1 parent 174968c commit dcbcb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SchemaUtils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public static function fetchTableListFromDB(\PDO $pdo): array {
2727
// we are doing this here
2828
return static::dbFetchCol(
2929
$pdo,
30-
"SELECT name FROM sqlite_master
30+
"SELECT name FROM sqlite_master where sqlite_master.type IN ('table', 'view')
3131
UNION ALL
32-
SELECT name FROM sqlite_temp_master
32+
SELECT name FROM sqlite_temp_master where sqlite_temp_master.type IN ('table', 'view')
3333
ORDER BY name"
3434
);
3535
}

0 commit comments

Comments
 (0)