function panels_schema_1 in Panels 6.3
Same name and namespace in other branches
- 6.2 panels.install \panels_schema_1()
Schema version 1 for Panels in D6.
Schema v1 is now LOCKED; any changes should be done via panels_schema_2.
4 calls to panels_schema_1()
- panels_schema_2 in ./
panels.install - Schema that adds the title_pane field.
- panels_update_5299 in ./
panels.install - Update from 5.x v2
- panels_update_6290 in ./
panels.install - Update from 6.x v2.
- panels_update_6291 in ./
panels.install - Special update function for the alpha2 to alpha3 transition after I messed it up.
File
- ./
panels.install, line 237
Code
function panels_schema_1() {
$schema = array();
$schema['panels_display'] = array(
'export' => array(
'object' => 'panels_display',
'bulk export' => FALSE,
'export callback' => 'panels_export_display',
'can disable' => FALSE,
'identifier' => 'display',
),
'fields' => array(
'did' => array(
'type' => 'serial',
'not null' => TRUE,
'no export' => TRUE,
),
'layout' => array(
'type' => 'varchar',
'length' => '255',
'default' => '',
),
'layout_settings' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'panel_settings' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'cache' => array(
'type' => 'text',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'title' => array(
'type' => 'varchar',
'length' => '255',
'default' => '',
),
'hide_title' => array(
'type' => 'int',
'size' => 'tiny',
'default' => 0,
'no export' => TRUE,
),
),
'primary key' => array(
'did',
),
);
$schema['panels_pane'] = array(
'export' => array(
'can disable' => FALSE,
'identifier' => 'pane',
'bulk export' => FALSE,
),
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'did' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'no export' => TRUE,
),
'panel' => array(
'type' => 'varchar',
'length' => '32',
'default' => '',
),
'type' => array(
'type' => 'varchar',
'length' => '32',
'default' => '',
),
'subtype' => array(
'type' => 'varchar',
'length' => '64',
'default' => '',
),
'shown' => array(
'type' => 'int',
'size' => 'tiny',
'default' => 1,
),
'access' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'configuration' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'cache' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'style' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'css' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'extras' => array(
'type' => 'text',
'size' => 'big',
'serialize' => TRUE,
'object default' => array(),
'initial ' => array(),
),
'position' => array(
'type' => 'int',
'size' => 'small',
'default' => 0,
),
),
'primary key' => array(
'pid',
),
'indexes' => array(
'did_idx' => array(
'did',
),
),
);
return $schema;
}