1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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;