1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

*** empty log message ***

git-svn-id: file:///svn/phpbb/trunk@7852 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2007-07-09 17:17:04 +00:00
parent 2bb247d2bd
commit 61703b1ed2
2 changed files with 2 additions and 1 deletions

View File

@@ -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))