function node_gallery_schema in Node Gallery 6.2
Same name and namespace in other branches
- 6.3 node_gallery.install \node_gallery_schema()
- 6 node_gallery.install \node_gallery_schema()
Implementation of hook_schema()
Return value
unknown
File
- ./
node_gallery.install, line 14 - Node gallery install file.
Code
function node_gallery_schema() {
$schema = array();
$schema['node_galleries'] = array(
'fields' => array(
'gid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('Gallery node id.'),
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('Image node id.'),
),
'fid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => t('Image node file id.'),
),
'weight' => array(
'type' => 'int',
'size' => 'small',
'not null' => FALSE,
'default' => 0,
),
'is_cover' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}