You are here

function panels_mini_schema_1 in Panels 6.2

Same name and namespace in other branches
  1. 6.3 panels_mini/panels_mini.install \panels_mini_schema_1()
  2. 7.3 panels_mini/panels_mini.install \panels_mini_schema_1()

Schema version 1 for Panels in D6.

1 call to panels_mini_schema_1()
panels_mini_schema in panels_mini/panels_mini.install
Implementation of hook_schema().

File

panels_mini/panels_mini.install, line 15

Code

function panels_mini_schema_1() {
  $schema = array();
  $schema['panels_mini'] = array(
    'fields' => array(
      'pid' => array(
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => '255',
      ),
      'category' => array(
        'type' => 'varchar',
        'length' => '64',
      ),
      'did' => array(
        'type' => 'int',
      ),
      'title' => array(
        'type' => 'varchar',
        'length' => '128',
      ),
      'requiredcontexts' => array(
        'type' => 'text',
        'size' => 'big',
      ),
      'contexts' => array(
        'type' => 'text',
        'size' => 'big',
      ),
      'relationships' => array(
        'type' => 'text',
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'pid',
    ),
    'unique keys' => array(
      'name' => array(
        'name',
      ),
    ),
  );
  return $schema;
}