function rate_expiration_schema in Rate 6.2
Same name and namespace in other branches
- 7 expiration/rate_expiration.install \rate_expiration_schema()
Implements hook_schema().
File
- expiration/
rate_expiration.install, line 20
Code
function rate_expiration_schema() {
$schema = array();
$schema['rate_expiration'] = array(
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'widget_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'start' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'end' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}