Skip to content

Commit 74c74ec

Browse files
authored
Compare lowercased column names (#51431)
1 parent f8c0f59 commit 74c74ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Schema/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function getColumnType($table, $column, $fullDefinition = false)
293293
$columns = $this->getColumns($table);
294294

295295
foreach ($columns as $value) {
296-
if (strtolower($value['name']) === $column) {
296+
if (strtolower($value['name']) === strtolower($column)) {
297297
return $fullDefinition ? $value['type'] : $value['type_name'];
298298
}
299299
}

0 commit comments

Comments
 (0)