[ticket/12448] Fix null columns for postgres

PHPBB3-12448
This commit is contained in:
Joas Schilling 2014-06-25 18:37:46 +02:00
parent 95ab4b3e93
commit b2044884ff

View file

@ -1572,6 +1572,12 @@ class tools
$return_array['null'] = 'NOT NULL';
$sql .= 'NOT NULL ';
}
else
{
$default_val = "'" . $column_data[1] . "'";
$return_array['null'] = 'NULL';
$sql .= 'NULL ';
}
$return_array['default'] = $default_val;