rate_expiration.install in Rate 6.2
File
expiration/rate_expiration.install
View source
<?php
function rate_expiration_install() {
drupal_install_schema('rate_expiration');
}
function rate_expiration_uninstall() {
drupal_uninstall_schema('rate_expiration');
}
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;
}