Commit 54239c7f authored by zYne's avatar zYne

better listColumns handling

parent 94711451
...@@ -160,9 +160,16 @@ class Doctrine_Import_Pgsql extends Doctrine_Import ...@@ -160,9 +160,16 @@ class Doctrine_Import_Pgsql extends Doctrine_Import
$length = preg_replace('~.*\(([0-9]*)\).*~', '$1', $val['complete_type']); $length = preg_replace('~.*\(([0-9]*)\).*~', '$1', $val['complete_type']);
$val['type'] .= '(' . $length . ')'; $val['type'] .= '(' . $length . ')';
} }
$decl = $this->conn->dataDict->getPortableDeclaration($val);
$description = array( $description = array(
'name' => $val['field'], 'name' => $val['field'],
'type' => $val['type'], 'type' => $val['type'],
'ptype' => $decl['type'],
'length' => $decl['length'],
'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'],
'notnull' => ($val['isnotnull'] == ''), 'notnull' => ($val['isnotnull'] == ''),
'default' => $val['default'], 'default' => $val['default'],
'primary' => ($val['pri'] == 't'), 'primary' => ($val['pri'] == 't'),
......
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