1
0
mirror of synced 2025-01-18 22:41:43 +03:00

better listColumns handling

This commit is contained in:
zYne 2007-02-10 10:59:55 +00:00
parent 9471145115
commit 54239c7f10

View File

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