mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12448] Fix null columns for postgres
PHPBB3-12448
This commit is contained in:
parent
95ab4b3e93
commit
b2044884ff
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue