File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 169
169
Gdn::sql ()->query ('update GDN_User u set u.CountWatchedCategories = 0 where u.CountWatchedCategories is null ' , 'update ' );
170
170
}
171
171
172
+ // https://github.com/topcoder-platform/forums/issues/475
173
+ // Add the column PScore/NScore in Discussion :
174
+ if (!Gdn::structure ()->table ('Discussion ' )->columnExists ('PScore ' )) {
175
+ Gdn::structure ()->table ('Discussion ' )
176
+ ->column ('PScore ' , 'float ' , null )
177
+ ->column ('NScore ' , 'float ' , null )
178
+ ->set (false , false );
179
+ }
180
+
181
+ // https://github.com/topcoder-platform/forums/issues/475
182
+ // Add the column PScore/NScore in Comment :
183
+ if (!Gdn::structure ()->table ('Comment ' )->columnExists ('PScore ' )) {
184
+ Gdn::structure ()->table ('Comment ' )
185
+ ->column ('PScore ' , 'float ' , null )
186
+ ->column ('NScore ' , 'float ' , null )
187
+ ->set (false , false );
188
+ }
172
189
}
You can’t perform that action at this time.
0 commit comments