From 4917ebe93a7490d814848f2ce6a5c80343599dcf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 25 Jun 2014 18:39:10 +0200 Subject: [ticket/12448] Fix null columns for MS SQL PHPBB3-12448 --- phpBB/phpbb/db/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/phpbb/db/tools.php') diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 54075b464c..bafd547917 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -1487,7 +1487,7 @@ class tools $return_array['textimage'] = $column_type === '[text]'; - if (!is_null($column_data[1])) + if (!is_null($column_data[1]) || (isset($column_data[2]) && $column_data[2] == 'auto_increment')) { $sql .= 'NOT NULL'; $sql_default .= 'NOT NULL'; -- cgit v1.2.1