Commit c2591171 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 54239c7f
...@@ -67,12 +67,18 @@ class Doctrine_Import_Mssql extends Doctrine_Import ...@@ -67,12 +67,18 @@ class Doctrine_Import_Mssql extends Doctrine_Import
} }
if ($type == 'varchar') { if ($type == 'varchar') {
$type .= '('.$val['length'].')'; $type .= '(' . $val['length'] . ')';
} }
$decl = $this->conn->dataDict->getPortableDeclaration($val);
$description = array( $description = array(
'name' => $val['column_name'], 'name' => $val['column_name'],
'type' => $type, 'type' => $type,
'ptype' => $decl['type'],
'length' => $decl['length'],
'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'],
'notnull' => (bool) ($val['is_nullable'] === 'NO'), 'notnull' => (bool) ($val['is_nullable'] === 'NO'),
'default' => $val['column_def'], 'default' => $val['column_def'],
'primary' => (strtolower($identity) == 'identity'), 'primary' => (strtolower($identity) == '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