You are here

function cpn_schema in Code per Node 6

Same name and namespace in other branches
  1. 7 cpn.install \cpn_schema()

Implementation of hook_schema().

File

./cpn.install, line 10
Installation, schema and update hook implementations.

Code

function cpn_schema() {
  $schema['cpn'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'css' => array(
        'type' => 'text',
        'not null' => FALSE,
        'size' => 'big',
      ),
      'js' => array(
        'type' => 'text',
        'not null' => FALSE,
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}