function media_flickr_update_6005 in Media: Flickr 6
Create the media_flickr_photoset_count table.
File
- ./
media_flickr.install, line 214 - Installation file for Media: Flickr.
Code
function media_flickr_update_6005() {
$schema['media_flickr_photoset_count'] = array(
'description' => t('Node instance counts for flickr photosets.'),
'fields' => array(
'photoset' => array(
'default' => '',
'description' => t('The flickr photoset code.'),
'length' => 255,
'not null' => TRUE,
'type' => 'varchar',
),
'instances' => array(
'description' => t("The number of items this photoset appears in."),
'not null' => TRUE,
'type' => 'int',
'unsigned' => TRUE,
),
),
'primary key' => array(
'photoset',
),
);
$ret = array();
if (!db_table_exists('media_flickr_photoset_count')) {
db_create_table($ret, 'media_flickr_photoset_count', $schema['media_flickr_photoset_count']);
}
return $ret;
}