Removing AFTER in Postgres add column.

It causes SQL errors on Postgres 8.4
This commit is contained in:
mark_story 2011-09-16 21:12:11 -04:00
parent 707c0b4130
commit 77b3e63293

View file

@ -580,11 +580,7 @@ class DboPostgres extends DboSource {
case 'add':
foreach ($column as $field => $col) {
$col['name'] = $field;
$alter = 'ADD COLUMN '.$this->buildColumn($col);
if (isset($col['after'])) {
$alter .= ' AFTER '. $this->name($col['after']);
}
$colList[] = $alter;
$colList[] = 'ADD COLUMN '.$this->buildColumn($col);
}
break;
case 'drop':