function scald_index_schema in scald_index 7
Implements hook_schema().
File
- ./
scald_index.install, line 35 - Scald Index Installation
Code
function scald_index_schema() {
$schema = array();
$schema['scald_index'] = array(
'fields' => array(
'id' => array(
'description' => 'Extra auto increment field so we can have a PRIMARY key',
'type' => 'serial',
'not null' => TRUE,
),
'sid' => array(
'type' => 'int',
'not null' => TRUE,
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
),
'type' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'field_name' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'status' => array(
'description' => 'Boolean indicating whether the node is published.',
'type' => 'int',
'not null' => FALSE,
'default' => 0,
'size' => 'tiny',
),
),
'primary key' => array(
'id',
),
'indexes' => array(
'nid' => array(
'nid',
),
'sid' => array(
'sid',
),
'field_name' => array(
'field_name',
),
),
);
return $schema;
}