   rql_ip INT UNSIGNED,
   rql_host_name VARCHAR(80) CHARACTER SET utf8 COLLATE utf8_general_ci,
   rql_accept_language VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_general_ci,
-  rql_user_agent VARCHAR(100) CHARACTER SET utf8 COLLATE utf8_general_ci,
+  rql_user_agent VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci,
   rql_status_code SMALLINT,
   rql_number_of_queries INT,
   rql_time FLOAT,

CREATE INDEX rql_id ON LOG_REQUEST_POST (rql_id);

CREATE INDEX IX_FK_LOG_REQUEST_QUERY ON LOG_REQUEST_QUERY (rql_id);

/*================================================================================*/
/* CREATE FOREIGN KEYS                                                            */
/*================================================================================*/

ALTER TABLE LOG_REQUEST_COOKIE
  ADD CONSTRAINT FK_LOG_REQUEST_COOKIE_LOG_REQUEST
  FOREIGN KEY (rql_id) REFERENCES LOG_REQUEST (rql_id);

ALTER TABLE LOG_REQUEST_POST
  ADD CONSTRAINT FK_LOG_REQUEST_POST_LOG_REQUEST
  FOREIGN KEY (rql_id) REFERENCES LOG_REQUEST (rql_id);

ALTER TABLE LOG_REQUEST_QUERY
  ADD CONSTRAINT FK_LOG_REQUEST_QUERY_LOG_REQUEST
  FOREIGN KEY (rql_id) REFERENCES LOG_REQUEST (rql_id);


/*
COMMENT ON COLUMN LOG_REQUEST.rql_time
The (real) time required for processing the page request
*/

CREATE TABLE LOG_REQUEST_COOKIE (
