Browse Source

SQLServer lengths are stringy.

Mark Story 8 years ago
parent
commit
1ce4ba4443
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Database/Schema/SqlserverSchema.php

+ 1 - 1
src/Database/Schema/SqlserverSchema.php

@@ -130,7 +130,7 @@ class SqlserverSchema extends BaseSchema
             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];
         }