You are here

function drupalmonitor_schema in Drupalmonitor 8

Implements hook_schema().

File

./drupalmonitor.install, line 13
Installer file of drupalmonitor module

Code

function drupalmonitor_schema() {
  $schema['drupalmonitor_log'] = [
    'fields' => [
      'id' => [
        'type' => 'serial',
        'length' => 15,
        'not null' => TRUE,
      ],
      'q' => [
        'type' => 'text',
        'not null' => TRUE,
      ],
      'dt' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
      'memory' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
      'execution_time' => [
        'type' => 'int',
        'not null' => TRUE,
      ],
    ],
    'primary key' => [
      'id',
    ],
  ];
  return $schema;
}