1
0
mirror of synced 2024-12-14 07:06:04 +03:00

set primary, autoincrement and unique attributes

This commit is contained in:
runa 2006-10-31 18:27:16 +00:00
parent 0148078757
commit 52aa5845b6

View File

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