You are here

function joomla_myblog_schema in Joomla to Drupal 7

Same name and namespace in other branches
  1. 6 joomla_myblog.install \joomla_myblog_schema()
  2. 7.2 joomla_myblog.install \joomla_myblog_schema()

Implementation of hook_schema().

File

./joomla_myblog.install, line 13

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;
}