From b2044884ffab5e32fa1870ec68fe956a7cb05e1e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 25 Jun 2014 18:37:46 +0200 Subject: [ticket/12448] Fix null columns for postgres PHPBB3-12448 --- phpBB/phpbb/db/tools.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/phpbb/db/tools.php') diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 874fe4dc11..54075b464c 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -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; -- cgit v1.2.1