You are here

function contentoptimizer_schema in Content Optimizer 6

Same name and namespace in other branches
  1. 8 contentoptimizer.install \contentoptimizer_schema()
  2. 6.2 contentoptimizer.install \contentoptimizer_schema()
  3. 7.2 contentoptimizer.install \contentoptimizer_schema()

Implementation of hook_schema

File

./contentoptimizer.install, line 23

Code

function contentoptimizer_schema() {
  $schema['contentoptimizer_keyword'] = array(
    'description' => t('Creates database table for contentoptimizer keywords.'),
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => t('The {node}.nid to which the contentoptimizer keyword.'),
      ),
      //nid
      'keyword' => array(
        'type' => 'varchar',
        'length' => '128',
        'not null' => TRUE,
        'default' => '',
        'description' => t('The targeted keyword phrase for the node.'),
      ),
      //title
      'modifiers' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
        'description' => t('Modifiers for targeted keyword phrase.'),
      ),
    ),
  );
  return $schema;
}