You are here

function path_breadcrumbs_schema in Path Breadcrumbs 7

Same name and namespace in other branches
  1. 7.3 path_breadcrumbs.install \path_breadcrumbs_schema()
  2. 7.2 path_breadcrumbs.install \path_breadcrumbs_schema()

Implements hook_schema().

File

./path_breadcrumbs.install, line 11
Provides database structure for PATH BREADCRUMBS module.

Code

function path_breadcrumbs_schema() {
  $schema['path_breadcrumbs'] = array(
    'fields' => array(
      'path_id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'path' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'titles' => array(
        'type' => 'blob',
        'not null' => TRUE,
        'size' => 'big',
      ),
      'paths' => array(
        'type' => 'blob',
        'not null' => TRUE,
        'size' => 'big',
      ),
      'home' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 1,
      ),
    ),
    'primary key' => array(
      'path_id',
    ),
  );
  return $schema;
}