DROP TABLE IF EXISTS `xf_error_log`;
CREATE TABLE `xf_error_log` (
  `error_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `exception_date` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ip_address` varbinary(16) NOT NULL DEFAULT '',
  `exception_type` varchar(75) NOT NULL,
  `message` text NOT NULL,
  `filename` varchar(255) NOT NULL,
  `line` int(10) unsigned NOT NULL,
  `trace_string` mediumtext NOT NULL,
  `request_state` mediumblob NOT NULL,
  PRIMARY KEY (`error_id`),
  KEY `exception_date` (`exception_date`)
) ENGINE=InnoDB AUTO_INCREMENT=182 DEFAULT CHARSET=utf8;