webmaster@1: 'Table that contains logs of all system events.', webmaster@1: 'fields' => array( webmaster@1: 'wid' => array( webmaster@1: 'type' => 'serial', webmaster@1: 'not null' => TRUE, franck@19: 'description' => 'Primary Key: Unique watchdog event ID.', webmaster@1: ), webmaster@1: 'uid' => array( webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, franck@19: 'description' => 'The {users}.uid of the user who triggered the event.', webmaster@1: ), webmaster@1: 'type' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 16, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', franck@19: 'description' => 'Type of log message, for example "user" or "page not found."', webmaster@1: ), webmaster@1: 'message' => array( webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'big', franck@19: 'description' => 'Text of log message to be passed into the t() function.', webmaster@1: ), webmaster@1: 'variables' => array( webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, webmaster@1: 'size' => 'big', franck@19: 'description' => 'Serialized array of variables that match the message string and that is passed into the t() function.', webmaster@1: ), webmaster@1: 'severity' => array( webmaster@1: 'type' => 'int', webmaster@1: 'unsigned' => TRUE, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, webmaster@1: 'size' => 'tiny', franck@19: 'description' => 'The severity level of the event; ranges from 0 (Emergency) to 7 (Debug)', webmaster@1: ), webmaster@1: 'link' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 255, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', franck@19: 'description' => 'Link to view the result of the event.', webmaster@1: ), webmaster@1: 'location' => array( webmaster@1: 'type' => 'text', webmaster@1: 'not null' => TRUE, franck@19: 'description' => 'URL of the origin of the event.', webmaster@1: ), webmaster@1: 'referer' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 128, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', franck@19: 'description' => 'URL of referring page.', webmaster@1: ), webmaster@1: 'hostname' => array( webmaster@1: 'type' => 'varchar', webmaster@1: 'length' => 128, webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => '', franck@19: 'description' => 'Hostname of the user who triggered the event.', webmaster@1: ), webmaster@1: 'timestamp' => array( webmaster@1: 'type' => 'int', webmaster@1: 'not null' => TRUE, webmaster@1: 'default' => 0, franck@19: 'description' => 'Unix timestamp of when event occurred.', webmaster@1: ), webmaster@1: ), webmaster@1: 'primary key' => array('wid'), webmaster@1: 'indexes' => array('type' => array('type')), webmaster@1: ); webmaster@1: webmaster@1: return $schema; webmaster@1: } webmaster@1: