1
0
mirror of synced 2025-03-05 20:36:15 +03:00
This commit is contained in:
zYne 2007-02-17 18:35:24 +00:00
parent 5317ae2227
commit 7fdb9509f0

View File

@ -131,11 +131,15 @@ class Doctrine_Import_Sqlite extends Doctrine_Import
$columns = array(); $columns = array();
foreach ($result as $key => $val) { foreach ($result as $key => $val) {
$description = array( $description = array(
'name' => $val['name'], 'name' => $val['name'],
'type' => $val['type'], 'type' => $val['type'],
'notnull' => (bool) $val['notnull'], 'notnull' => (bool) $val['notnull'],
'default' => $val['dflt_value'], 'default' => $val['dflt_value'],
'primary' => (bool) $val['pk'], 'primary' => (bool) $val['pk'],
'length' => null,
'scale' => null,
'precision' => null,
'unsigned' => null,
); );
$columns[$val['name']] = $description; $columns[$val['name']] = $description;
} }