You are here

function protected_pages_schema in Protected Pages 7.2

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

Implements hook_schema().

File

./protected_pages.install, line 11
Protected Pages install file.

Code

function protected_pages_schema() {
  $schema['protected_pages'] = array(
    'fields' => array(
      'pid' => array(
        'description' => 'The primary key always unique.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'password' => array(
        'type' => 'varchar',
        'description' => 'The password of the protected page.',
        'length' => '128',
        'not null' => TRUE,
      ),
      'path' => array(
        'type' => 'varchar',
        'description' => 'The path of the protected page.',
        'length' => '255',
        'not null' => TRUE,
      ),
    ),
    'indexes' => array(
      'path' => array(
        'path',
      ),
    ),
    'primary key' => array(
      'pid',
    ),
  );
  return $schema;
}