Commit 9d52f004 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-461' into 2.3

parents 569f1aed 8fb0adce
......@@ -59,10 +59,10 @@ abstract class AbstractSchemaManager
*
* @param \Doctrine\DBAL\Connection $conn
*/
public function __construct(\Doctrine\DBAL\Connection $conn)
public function __construct(\Doctrine\DBAL\Connection $conn, AbstractPlatform $platform = null)
{
$this->_conn = $conn;
$this->_platform = $this->_conn->getDatabasePlatform();
$this->_conn = $conn;
$this->_platform = $platform ?: $this->_conn->getDatabasePlatform();
}
/**
......
......@@ -40,6 +40,7 @@ class SQLServerSchemaManager extends AbstractSchemaManager
protected function _getPortableTableColumnDefinition($tableColumn)
{
$dbType = strtolower($tableColumn['TYPE_NAME']);
$dbType = strtok($dbType, '(), ');
$autoincrement = false;
if (stripos($dbType, 'identity')) {
......
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