Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "force column type of identity column to integer if database r…

…eports it back as numeric"

This reverts commit e7365d5.
  • Loading branch information...
commit 9c951fbe97e3e697f26ddff03c4b4421416bfb68 1 parent e7365d5
@DerManoMann DerManoMann authored
Showing with 1 addition and 11 deletions.
  1. +1 −11 Doctrine/DBAL/Schema/PDODblibSchemaManager.php
View
12 Doctrine/DBAL/Schema/PDODblibSchemaManager.php
@@ -19,8 +19,6 @@
namespace PDODblibBundle\Doctrine\DBAL\Schema;
-use Doctrine\DBAL\Types\Type;
-
/**
* The PDO-based Dblib schema manager.
*
@@ -36,15 +34,7 @@ protected function _getPortableTableColumnDefinition($tableColumn) {
foreach ($tableColumn as $key => $value) {
$tableColumn[strtoupper($key)] = $value;
}
-
- $column = parent::_getPortableTableColumnDefinition($tableColumn);
-
- // for identity columns sybase returns numeric, but should be integer...
- if ($column->getAutoincrement() && false !== strpos(strtolower($tableColumn['TYPE_NAME']), 'numeric')) {
- $column->setType(Type::getType(TYPE::INTEGER));
- }
-
- return $column;
+ return parent::_getPortableTableColumnDefinition($tableColumn);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.