diff options
| -rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
| -rw-r--r-- | phpBB/install/database_update.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 823ec15562..bcb0bcc847 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -193,6 +193,7 @@ p a { <li>[Fix] Added a missing global to get_file() (Bug #13149)</li> <li>[Fix] Hide autologin box when autologin is disabled (Bug #13093)</li> <li>[Fix] Account for the forum id not being part of the request uri in prosilver (Bug #13121)</li> + <li>[Fix] Properly alter PostgreSQL tables</li> </ul> diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 8b20d0c942..559de678bf 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -1001,9 +1001,9 @@ function prepare_column_data($dbms, $column_data) case 'postgres': $sql .= " {$column_type} "; + $sql .= 'NOT NULL'; $sql .= (!is_null($column_data[1])) ? "DEFAULT '{$column_data[1]}' " : ''; - $sql .= 'NOT NULL'; // Unsigned? Then add a CHECK contraint if (in_array($orig_column_type, $unsigned_types)) |
