Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -9,84 +9,84 @@
|
|||
* Implements hook_schema().
|
||||
*/
|
||||
function dblog_schema() {
|
||||
$schema['watchdog'] = array(
|
||||
$schema['watchdog'] = [
|
||||
'description' => 'Table that contains logs of all system events.',
|
||||
'fields' => array(
|
||||
'wid' => array(
|
||||
'fields' => [
|
||||
'wid' => [
|
||||
'type' => 'serial',
|
||||
'not null' => TRUE,
|
||||
'description' => 'Primary Key: Unique watchdog event ID.',
|
||||
),
|
||||
'uid' => array(
|
||||
],
|
||||
'uid' => [
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
'description' => 'The {users}.uid of the user who triggered the event.',
|
||||
),
|
||||
'type' => array(
|
||||
],
|
||||
'type' => [
|
||||
'type' => 'varchar_ascii',
|
||||
'length' => 64,
|
||||
'not null' => TRUE,
|
||||
'default' => '',
|
||||
'description' => 'Type of log message, for example "user" or "page not found."',
|
||||
),
|
||||
'message' => array(
|
||||
],
|
||||
'message' => [
|
||||
'type' => 'text',
|
||||
'not null' => TRUE,
|
||||
'size' => 'big',
|
||||
'description' => 'Text of log message to be passed into the t() function.',
|
||||
),
|
||||
'variables' => array(
|
||||
],
|
||||
'variables' => [
|
||||
'type' => 'blob',
|
||||
'not null' => TRUE,
|
||||
'size' => 'big',
|
||||
'description' => 'Serialized array of variables that match the message string and that is passed into the t() function.',
|
||||
),
|
||||
'severity' => array(
|
||||
],
|
||||
'severity' => [
|
||||
'type' => 'int',
|
||||
'unsigned' => TRUE,
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
'size' => 'tiny',
|
||||
'description' => 'The severity level of the event; ranges from 0 (Emergency) to 7 (Debug)',
|
||||
),
|
||||
'link' => array(
|
||||
],
|
||||
'link' => [
|
||||
'type' => 'text',
|
||||
'not null' => FALSE,
|
||||
'description' => 'Link to view the result of the event.',
|
||||
),
|
||||
'location' => array(
|
||||
],
|
||||
'location' => [
|
||||
'type' => 'text',
|
||||
'not null' => TRUE,
|
||||
'description' => 'URL of the origin of the event.',
|
||||
),
|
||||
'referer' => array(
|
||||
],
|
||||
'referer' => [
|
||||
'type' => 'text',
|
||||
'not null' => FALSE,
|
||||
'description' => 'URL of referring page.',
|
||||
),
|
||||
'hostname' => array(
|
||||
],
|
||||
'hostname' => [
|
||||
'type' => 'varchar_ascii',
|
||||
'length' => 128,
|
||||
'not null' => TRUE,
|
||||
'default' => '',
|
||||
'description' => 'Hostname of the user who triggered the event.',
|
||||
),
|
||||
'timestamp' => array(
|
||||
],
|
||||
'timestamp' => [
|
||||
'type' => 'int',
|
||||
'not null' => TRUE,
|
||||
'default' => 0,
|
||||
'description' => 'Unix timestamp of when event occurred.',
|
||||
),
|
||||
),
|
||||
'primary key' => array('wid'),
|
||||
'indexes' => array(
|
||||
'type' => array('type'),
|
||||
'uid' => array('uid'),
|
||||
'severity' => array('severity'),
|
||||
),
|
||||
);
|
||||
],
|
||||
],
|
||||
'primary key' => ['wid'],
|
||||
'indexes' => [
|
||||
'type' => ['type'],
|
||||
'uid' => ['uid'],
|
||||
'severity' => ['severity'],
|
||||
],
|
||||
];
|
||||
|
||||
return $schema;
|
||||
}
|
||||
|
|
Reference in a new issue