ALTER TABLE thread ADD articleid int(10) unsigned DEFAULT '0' NOT NULL; ALTER TABLE thread ADD INDEX(articleid);