You are here

function devel_schema in Devel 6

Implementation of hook_schema().

File

./devel.install, line 10
Install file for devel module.

Code

function devel_schema() {
  $schema['devel_queries'] = array(
    'fields' => array(
      'qid' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'disp-width' => '10',
      ),
      'function' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
      'query' => array(
        'type' => 'text',
        'not null' => TRUE,
      ),
      'hash' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'hash',
    ),
    'indexes' => array(
      'qid' => array(
        'qid',
      ),
    ),
  );
  $schema['devel_times'] = array(
    'fields' => array(
      'tid' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'disp-width' => '10',
      ),
      'qid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'disp-width' => '10',
      ),
      'time' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'tid',
    ),
    'indexes' => array(
      'qid' => array(
        'qid',
      ),
    ),
  );
  return $schema;
}