function joomla_myblog_schema in Joomla to Drupal 6
Same name and namespace in other branches
- 7.2 joomla_myblog.install \joomla_myblog_schema()
- 7 joomla_myblog.install \joomla_myblog_schema()
Implementation of hook_schema().
File
- ./
joomla_myblog.install, line 24
Code
function joomla_myblog_schema() {
$schema['joomla_myblog_categories'] = array(
'description' => 'Stores the original Joomla MyBlog category ID and links to the {term_data} table',
'fields' => array(
'myblogcategoryid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => "The myblog category id from the Joomla database.",
),
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => "The {term_data}.tid.",
),
),
'primary key' => array(
'myblogcategoryid',
),
);
return $schema;
}