Fixing error in las commit

This commit is contained in:
José Lorenzo Rodríguez 2010-03-29 23:58:07 -04:30
parent bbf96567eb
commit ebde29f63c

View file

@ -600,7 +600,7 @@ class DboPostgres extends DboSource {
}
if (isset($default)) {
$colList[] = 'ALTER COLUMN '. $fieldName .' SET DEFAULT ' . $this->value($default, $field);
$colList[] = 'ALTER COLUMN '. $fieldName .' SET DEFAULT ' . $this->value($default, $col['type']);
} else {
$colList[] = 'ALTER COLUMN '. $fieldName .' DROP DEFAULT';
}