function disqus_migrate_schema in Disqus 6
Implementation of hook_schema().
File
- ./
disqus_migrate.install, line 30 - The install and update hooks for the Disqus module.
Code
function disqus_migrate_schema() {
$schema['disqus_migrate'] = array(
'description' => 'Holds associations of Disqus comment IDs to Drupal Comment IDs.',
'fields' => array(
'did' => array(
'description' => 'The primary identifier for the Disqus comment.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'dtid' => array(
'description' => 'The Disqus thread ID that the comment belongs to.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'nid' => array(
'description' => 'The current {node}.nide node identifier.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'cid' => array(
'description' => 'The current {comments}.cid comment identifier.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'did',
),
);
return $schema;
}