Commit c7516d42 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #207 from datiecher/master

Removed Unsigned Integer Support in SQL Server
parents 2e9064f3 fbc2f53a
...@@ -631,13 +631,7 @@ class SQLServerPlatform extends AbstractPlatform ...@@ -631,13 +631,7 @@ class SQLServerPlatform extends AbstractPlatform
*/ */
protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef) protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef)
{ {
$autoinc = ''; return (!empty($columnDef['autoincrement'])) ? ' IDENTITY' : '';
if (!empty($columnDef['autoincrement'])) {
$autoinc = ' IDENTITY';
}
$unsigned = (isset($columnDef['unsigned']) && $columnDef['unsigned']) ? ' UNSIGNED' : '';
return $unsigned . $autoinc;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment