Skip to content

Commit 4e0c089

Browse files
authored
Merge pull request #566 from topcoder-platform/issues-475_2
Issues-475: Up/Down Votes are counted separately
2 parents 9b706de + 071bb98 commit 4e0c089

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

config/vanilla/bootstrap.early.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,21 @@
169169
Gdn::sql()->query('update GDN_User u set u.CountWatchedCategories = 0 where u.CountWatchedCategories is null', 'update');
170170
}
171171

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+
}
172189
}

0 commit comments

Comments
 (0)