mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing AFTER in Postgres add column.
It causes SQL errors on Postgres 8.4
This commit is contained in:
parent
707c0b4130
commit
77b3e63293
1 changed files with 1 additions and 5 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Reference in a new issue