According to what you've posted, you can run these queries:
PHP Code:
CREATE TABLE threadrate (
threadrateid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
threadid int(10) unsigned DEFAULT '0' NOT NULL,
userid int(10) unsigned DEFAULT '0' NOT NULL,
vote smallint(6) DEFAULT '0' NOT NULL,
ipaddress varchar(20) NOT NULL,
PRIMARY KEY (threadrateid),
KEY threadid (threadid));
and then this:
PHP Code:
UPDATE forum SET allowratings='1';
to return back to where you were...