Commit 597da8c3 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-482] autoincrement + identity columns on SQLServer

parent 1053e625
...@@ -40,7 +40,6 @@ class SQLServerSchemaManager extends AbstractSchemaManager ...@@ -40,7 +40,6 @@ class SQLServerSchemaManager extends AbstractSchemaManager
protected function _getPortableTableColumnDefinition($tableColumn) protected function _getPortableTableColumnDefinition($tableColumn)
{ {
$dbType = strtolower($tableColumn['TYPE_NAME']); $dbType = strtolower($tableColumn['TYPE_NAME']);
$dbType = strtok($dbType, '(), ');
$autoincrement = false; $autoincrement = false;
if (stripos($dbType, 'identity')) { if (stripos($dbType, 'identity')) {
...@@ -48,6 +47,8 @@ class SQLServerSchemaManager extends AbstractSchemaManager ...@@ -48,6 +47,8 @@ class SQLServerSchemaManager extends AbstractSchemaManager
$autoincrement = true; $autoincrement = true;
} }
$dbType = strtok($dbType, '(), ');
$type = array(); $type = array();
$unsigned = $fixed = null; $unsigned = $fixed = null;
......
Subproject commit d1c7d4334e38cad603a5c863d4c7b91bb04ec6b2 Subproject commit 15b04ec520ccded3dc0eba65b12a69ff1931360f
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