diff --git a/database/database.mysql b/database/database.mysql index 7337be7c3df..fa6eba04e6d 100644 --- a/database/database.mysql +++ b/database/database.mysql @@ -318,8 +318,8 @@ CREATE TABLE poll_choices ( CREATE TABLE rating ( uid int(10) NOT NULL default '0', - new int(6) NOT NULL default '0', - old int(6) NOT NULL default '0', + current int(6) NOT NULL default '0', + previous int(6) NOT NULL default '0', PRIMARY KEY (uid) ) TYPE=MyISAM; diff --git a/modules/rating.module b/modules/rating.module index 4f8fe48be4e..ae869304e6d 100644 --- a/modules/rating.module +++ b/modules/rating.module @@ -52,7 +52,7 @@ function rating_cron() { $r2 = db_query("SELECT uid FROM users ORDER BY rating DESC"); while ($account = db_fetch_object($r2)) { - db_query("INSERT INTO rating (uid, new, old) VALUES ('$account->uid', '". ++$j ."', '". $rating[$account->uid] ."')"); + db_query("INSERT INTO rating (uid, current, previous) VALUES ('$account->uid', '". ++$j ."', '". $rating[$account->uid] ."')"); } } } @@ -81,7 +81,7 @@ function rating_list($limit) { $output .= "
". ++$i .". | ". format_name($account) ." | ". check_output($account->rating) ." | (". ($ranking < 0 ? "" : "+") ."$ranking) |