Commit 8ee4d75b authored by zYne's avatar zYne

--no commit message

--no commit message
parent 975069e0
...@@ -122,6 +122,8 @@ class Doctrine_Import_Mysql extends Doctrine_Import ...@@ -122,6 +122,8 @@ class Doctrine_Import_Mysql extends Doctrine_Import
$decl = $this->conn->dataDict->getPortableDeclaration($val); $decl = $this->conn->dataDict->getPortableDeclaration($val);
$values = isset($decl['values']) ? $decl['values'] : array();
$description = array( $description = array(
'name' => $val['field'], 'name' => $val['field'],
'type' => $decl['type'][0], 'type' => $decl['type'][0],
...@@ -130,7 +132,7 @@ class Doctrine_Import_Mysql extends Doctrine_Import ...@@ -130,7 +132,7 @@ class Doctrine_Import_Mysql extends Doctrine_Import
'length' => $decl['length'], 'length' => $decl['length'],
'fixed' => $decl['fixed'], 'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'], 'unsigned' => $decl['unsigned'],
'values' => $decl['values'], 'values' => $values,
'primary' => (strtolower($val['key']) == 'pri'), 'primary' => (strtolower($val['key']) == 'pri'),
'default' => $val['default'], 'default' => $val['default'],
'notnull' => (bool) ($val['null'] != 'YES'), 'notnull' => (bool) ($val['null'] != 'YES'),
......
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