CREATE TABLE IF NOT EXISTS `users_post_rating` (
`id` int(11) NOT NULL
AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`post_id`
int(11) NOT NULL,
`rate` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY
`post_id` (`post_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM
DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
ALTER TABLE `forum` ADD `rating`
int(10) NOT NULL default 0;
ALTER TABLE `forum` ADD `plus_minus`
varchar(15) NOT NULL default '0|0';