File: node_access_test.install

package info (click to toggle)
drupal7 7.32-1%2Bdeb8u12
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 23,496 kB
  • sloc: php: 43,501; pascal: 41,001; sh: 1,635; xml: 466; makefile: 21; sql: 1
file content (42 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php

/**
 * @file
 * Install, update and uninstall functions for the node_access_test module.
 */

/**
 * Implements hook_schema().
 */
function node_access_test_schema() {
  $schema['node_access_test'] = array(
    'description' => 'The base table for node_access_test.',
    'fields' => array(
      'nid' => array(
        'description' => 'The {node}.nid this record affects.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'private' => array(
        'description' => 'Boolean indicating whether the node is private (visible to administrator) or not (visible to non-administrators).',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'nid' => array('nid'),
    ),
    'primary key' => array('nid'),
    'foreign keys' => array(
      'versioned_node' => array(
        'table' => 'node',
        'columns' => array('nid' => 'nid'),
      ),
    ),
  );

  return $schema;
}