You are here

function cctags_schema in cctags 6

Same name and namespace in other branches
  1. 8 cctags.install \cctags_schema()
  2. 7 cctags.install \cctags_schema()

File

./cctags.install, line 21
install/uninstall cctags variavles and scheme

Code

function cctags_schema() {
  $schema['cctags'] = array(
    'fields' => array(
      'cctid' => array(
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'block' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'block_name' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'page' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'page_title' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'page_path' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'page_level' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 6,
      ),
      'page_amount' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'page_sort' => array(
        'type' => 'varchar',
        'length' => 16,
        'not null' => TRUE,
        'default' => 'title,asc',
      ),
      'page_mode' => array(
        'type' => 'varchar',
        'length' => 16,
        'not null' => TRUE,
        'default' => 'mixed',
      ),
      'page_vocname' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'item_data' => array(
        'type' => 'text',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'cctid',
    ),
  );
  return $schema;
}