function protected_pages_schema in Protected Pages 8
Same name and namespace in other branches
- 7.2 protected_pages.install \protected_pages_schema()
- 7 protected_pages.install \protected_pages_schema()
Implements hook_schema().
File
- ./
protected_pages.install, line 13 - Protected Pages install file.
Code
function protected_pages_schema() {
$schema['protected_pages'] = [
'fields' => [
'pid' => [
'description' => 'The primary key always unique.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
],
'password' => [
'type' => 'varchar',
'description' => 'The password of the protected page.',
'length' => '128',
'not null' => TRUE,
],
'path' => [
'type' => 'varchar',
'description' => 'The path of the protected page.',
'length' => '255',
'not null' => TRUE,
],
],
'indexes' => [
'path' => [
'path',
],
],
'primary key' => [
'pid',
],
];
return $schema;
}