Skip to content

Commit

Permalink
SQLServer lengths are stringy.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 19, 2017
1 parent e29307e commit 1ce4ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Schema/SqlserverSchema.php
Expand Up @@ -130,7 +130,7 @@ protected function _convertColumn($col, $length = null, $precision = null, $scal
return ['type' => TableSchema::TYPE_TEXT, 'length' => null];
}

if ($col === 'binary' && $length === 16) {
if ($col === 'binary' && (int)$length === 16) {
return ['type' => TableSchema::TYPE_BINARY_UUID, 'length' => null];
}

Expand Down

0 comments on commit 1ce4ba4

Please sign in to comment.