added a karma ranking system to cs threads for conducting popularity contests

This commit is contained in:
JT Smith 2006-02-28 17:28:44 +00:00
parent 0400beba05
commit f2b2832524
9 changed files with 133 additions and 6 deletions

View file

@ -42,12 +42,16 @@
- [ 1433525 ] 6.9: Compilation errors
- base36 removed from Utility.t because it no longer exists in WebGUI::Utility.pm
- Add tests that verify the integrity of the WebGUI Database.
- Added a karma ranking system to CS threads for conducting popularity
contests.
6.8.8
- fix [ 1437186 ] 6.8.7 deploy DataForm package does not copy fields
- fix [ 1437563 ] Data picker intermittent for Admin
- fix broken link to top of CS Assets configured as FAQs
- fix [ 1437977 ] richeditor selectbox options not versioned, trashed appear
- fixed a bug in the rich editor where the page chooser didn't have scroll
bars
6.8.7
- fix [ 1431098 ] op=becomeUser can become non-existent userIds

View file

@ -39,6 +39,15 @@ addDatabaseCache();
finish($session); # this line required
#-------------------------------------------------
sub addCsPopularityContest {
print "\tAdding collaboration system popularity system based upon karma.\n";
$session->db->write("alter table Collaboration add column defaultKarmaScale integer not null default 1");
$session->db->write("alter table Thread add column karma integer not null default 0");
$session->db->write("alter table Thread add column karmaScale integer not null default 1");
$session->db->write("alter table Thread add column karmaRank decimal(5,6) not null default 0");
}
#-------------------------------------------------
sub addDatabaseCache {
print "\tAdding database cache.\n";