Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ClickHouseSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ protected function selectTableNames(string $databaseName): Result
<<<'SQL'
SELECT table_name
FROM INFORMATION_SCHEMA.TABLES
WHERE table_schema = ? AND table_type != 'BASE TABLE'
WHERE table_schema = ? AND table_type = 'BASE TABLE'
SQL,
[$databaseName]
);
Expand All @@ -182,7 +182,7 @@ protected function selectTableColumns(string $databaseName, ?string $tableName =

return $this->connection->executeQuery(
\sprintf(<<<'SQL'
SELECT c.column_name AS field,
SELECT c.column_name AS name,
c.table_name,
c.column_type as `type`,
c.is_nullable AS `null`,
Expand Down
Loading