SQL Server binary columns have a maximum length of 8000 bytes. Varbinary columns also have a maximum length of 8000 bytes. Varbinary(MAX) columns support up to 2 GB.
@@ -291,7 +291,7 @@ class SqlserverSchema extends BaseSchema {
'integer' => ' INTEGER',
'biginteger' => ' BIGINT',
'boolean' => ' BIT',
- 'binary' => ' BINARY',
+ 'binary' => ' VARBINARY(MAX)',
'float' => ' FLOAT',
'decimal' => ' DECIMAL',
'text' => ' NVARCHAR(MAX)',
@@ -489,7 +489,7 @@ SQL;
[
'img',
['type' => 'binary'],
- '[img] BINARY'
+ '[img] VARBINARY(MAX)'
],
// Boolean