You are here

function private_schema in Private 7

Same name and namespace in other branches
  1. 6 private.install \private_schema()
  2. 7.2 private.install \private_schema()

Implements hook_schema().

File

./private.install, line 11
Install, update and uninstall functions for the private module.

Code

function private_schema() {
  $schema['private'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'private' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}