Skip to content

Commit

Permalink
Fix column position in Schema::findColumns() (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored Nov 8, 2024
1 parent 0630eb6 commit b8ffabc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- Enh #357: Update according changes in `ColumnSchemaInterface` (@Tigrov)
- New #358: Add `ColumnDefinitionBuilder` class (@Tigrov)
- Enh #359: Refactor `Dsn` class (@Tigrov)
- Enh #361: Refactor `Schema::findColumns()` method (@Tigrov)
- Enh #361, #362: Refactor `Schema::findColumns()` method (@Tigrov)

## 1.2.0 March 21, 2024

Expand Down
1 change: 1 addition & 0 deletions src/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ protected function findColumns(TableSchemaInterface $table): bool
FROM `INFORMATION_SCHEMA`.`COLUMNS`
WHERE `TABLE_SCHEMA` = COALESCE(:schemaName, DATABASE())
AND `TABLE_NAME` = :tableName
ORDER BY `ORDINAL_POSITION`
SQL,
[
':schemaName' => $schemaName,
Expand Down

0 comments on commit b8ffabc

Please sign in to comment.