You are here

function metatags_quick_schema in Meta tags quick 7.2

Same name and namespace in other branches
  1. 8.3 metatags_quick.install \metatags_quick_schema()

Implements hook_schema().

File

./metatags_quick.install, line 11
Defines schema for metatags_quick fields

Code

function metatags_quick_schema() {
  $schema['metatags_quick_path_based'] = array(
    'description' => 'Path based meta tags',
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'description' => 'Entity id',
      ),
      'path' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'description' => 'The path of the page to apply meta tags to',
      ),
      'lang' => array(
        'type' => 'varchar',
        'length' => 8,
        'not null' => TRUE,
        'description' => 'Language code',
      ),
    ),
    'primary key' => array(
      'id',
    ),
    'unique keys' => array(
      'lang_path' => array(
        'lang',
        'path',
      ),
    ),
  );
  return $schema;
}