summaryrefslogtreecommitdiff
path: root/modules/node/tests/node_access_test.install
blob: 1f33d51bac5a65f9ef4c82fa21c76b2dc59d9084 (plain)
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;
}