You are here

function glossify_schema in Glossify 6

Same name and namespace in other branches
  1. 6.3 glossify.install \glossify_schema()

Implementation of hook_schema().

File

./glossify.install, line 61
Glossify's install and uninstall code.

Code

function glossify_schema() {
  $schema['glossify'] = array(
    'fields' => array(
      'gtid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'term' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => 256,
      ),
      'language' => array(
        'type' => 'varchar',
        'length' => 12,
        'not null' => TRUE,
        'default' => '',
      ),
      'method' => array(
        'type' => 'varchar',
        'length' => 12,
        'not null' => TRUE,
        'default' => '',
      ),
      'alternate' => array(
        'type' => 'varchar',
        'not null' => TRUE,
        'length' => 256,
      ),
    ),
    'primary key' => array(
      'gtid',
    ),
  );
  return $schema;
}