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; } /** * Implementation of hook_install(). */ function panels_install() { db_query("UPDATE {system} SET weight = 10 WHERE name = 'panels'"); drupal_install_schema('panels'); } /** * Implementation of hook_uninstall(). */ function panels_uninstall() { drupal_uninstall_schema('panels'); }