! [Topic solved mod] Add a default value for the new column, otherwise topic creation is sometimes broken.
gruffen

gruffen commited on 2011-08-10 05:38:38
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -21,7 +21,7 @@ if (empty($modSettings['topicsolved_highlight_col1']))
21 21
 		updateSettings(array($key => $value));
22 22
 }
23 23
 
24
-$smcFunc['db_add_column']('{db_prefix}topics', array('name' => 'solved', 'type' => 'tinyint', 'size' => 3, 'unsigned' => true));	
24
+$smcFunc['db_add_column']('{db_prefix}topics', array('name' => 'solved', 'type' => 'tinyint', 'size' => 3, 'default' => 0, 'unsigned' => true));	
25 25
 	
26 26
 $installed = $smcFunc['db_list_columns']('{db_prefix}topics');
27 27
 
28 28