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 {
  • [Fix] Added a missing global to get_file() (Bug #13149)
  • [Fix] Hide autologin box when autologin is disabled (Bug #13093)
  • [Fix] Account for the forum id not being part of the request uri in prosilver (Bug #13121)
  • +
  • [Fix] Properly alter PostgreSQL tables
  • 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))