Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[DBAL-482] autoincrement + identity columns on SQLServer
  • Loading branch information
beberlei committed May 1, 2013
1 parent 1053e62 commit 597da8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
Expand Up @@ -40,14 +40,15 @@ class SQLServerSchemaManager extends AbstractSchemaManager
protected function _getPortableTableColumnDefinition($tableColumn)
{
$dbType = strtolower($tableColumn['TYPE_NAME']);
$dbType = strtok($dbType, '(), ');

$autoincrement = false;
if (stripos($dbType, 'identity')) {
$dbType = trim(str_ireplace('identity', '', $dbType));
$autoincrement = true;
}

$dbType = strtok($dbType, '(), ');

$type = array();
$unsigned = $fixed = null;

Expand Down

0 comments on commit 597da8c

Please sign in to comment.