Commit 52aa5845 authored by runa's avatar runa

set primary, autoincrement and unique attributes

parent 01480787
...@@ -110,6 +110,16 @@ class Doctrine_Import_Builder { ...@@ -110,6 +110,16 @@ class Doctrine_Import_Builder {
if($column['notnull']) { if($column['notnull']) {
$a[] = '\'notnull\' => true'; $a[] = '\'notnull\' => true';
} }
if($column['primary']) {
$a[] = '\'primary\' => true';
}
if($column['autoinc']) {
$a[] = '\'autoincrement\' => true';
}
if($column['unique']) {
$a[] = '\'unique\' => true';
}
if( ! empty($a)) if( ! empty($a))
$columns[$i] .= ', ' . 'array(' . implode(', $columns[$i] .= ', ' . 'array(' . implode(',
', $a) . ')'; ', $a) . ')';
......
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