function brilliant_gallery_update_6001 in Brilliant Gallery 6.2
Same name and namespace in other branches
- 6.4 brilliant_gallery.install \brilliant_gallery_update_6001()
- 6.3 brilliant_gallery.install \brilliant_gallery_update_6001()
Implementation(s) of hook_update_N().
File
- ./
brilliant_gallery.install, line 81
Code
function brilliant_gallery_update_6001() {
$ret = array();
$schema['brilliant_gallery_checklist'] = array(
'description' => t('Table tracing which Brilliant Gallery images are hidden or visible.'),
'fields' => array(
'nid' => array(
'description' => t('Unused now.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'size' => 'normal',
'default' => 0,
),
'user' => array(
'description' => t('User ID.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'size' => 'normal',
'default' => 0,
),
'qid' => array(
'description' => t('Image.'),
'type' => 'text',
#'unsigned' => FALSE,
'not null' => TRUE,
'size' => 'normal',
),
'state' => array(
'description' => t('Visible or invisible.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'size' => 'normal',
'default' => 0,
),
),
'primary key' => array(
'nid',
'user',
array(
'qid',
255,
),
),
);
db_create_table($ret, 'brilliant_gallery_checklist', $schema['brilliant_gallery_checklist']);
return $ret;
}