function panels_schema_1 in Panels 6.2
Same name and namespace in other branches
- 6.3 panels.install \panels_schema_1()
Schema version 1 for Panels in D6.
1 call to panels_schema_1()
- panels_schema in ./
panels.install - Implementation of hook_schema().
File
- ./
panels.install, line 15
Code
function panels_schema_1() {
$schema = array();
$schema['panels_display'] = array(
'fields' => array(
'did' => array(
'type' => 'serial',
'not null' => TRUE,
),
'layout' => array(
'type' => 'varchar',
'length' => '32',
),
'layout_settings' => array(
'type' => 'text',
'size' => 'big',
),
'panel_settings' => array(
'type' => 'text',
'size' => 'big',
),
'cache' => array(
'type' => 'text',
),
'title' => array(
'type' => 'varchar',
'length' => '255',
),
'hide_title' => array(
'type' => 'int',
'size' => 'tiny',
),
),
'primary key' => array(
'did',
),
);
$schema['panels_pane'] = array(
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'did' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'panel' => array(
'type' => 'varchar',
'length' => '32',
),
'type' => array(
'type' => 'varchar',
'length' => '32',
),
'subtype' => array(
'type' => 'varchar',
'length' => '64',
),
'shown' => array(
'type' => 'int',
'size' => 'tiny',
'default' => 1,
),
'access' => array(
'type' => 'varchar',
'length' => '128',
),
'visibility' => array(
'type' => 'text',
'size' => 'big',
),
'configuration' => array(
'type' => 'text',
'size' => 'big',
),
'cache' => array(
'type' => 'text',
'size' => 'big',
),
'position' => array(
'type' => 'int',
'size' => 'small',
),
),
'primary key' => array(
'pid',
),
'indexes' => array(
'did_idx' => array(
'did',
),
),
);
$schema['panels_object_cache'] = array(
'fields' => array(
'sid' => array(
'type' => 'varchar',
'length' => '64',
),
'did' => array(
'type' => 'int',
),
'obj' => array(
'type' => 'varchar',
'length' => '255',
),
'data' => array(
'type' => 'text',
'size' => 'big',
),
'timestamp' => array(
'type' => 'int',
),
),
'indexes' => array(
'idx' => array(
'sid',
'obj',
'did',
),
'time_idx' => array(
'timestamp',
),
),
);
return $schema;
}