function brightcove_schema in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 8.2 brightcove.install \brightcove_schema()
- 8 brightcove.install \brightcove_schema()
- 7.7 brightcove.install \brightcove_schema()
- 7.2 brightcove.install \brightcove_schema()
- 7.4 brightcove.install \brightcove_schema()
- 7.5 brightcove.install \brightcove_schema()
- 7.6 brightcove.install \brightcove_schema()
- 3.x brightcove.install \brightcove_schema()
Implements hook_schema().
File
- ./
brightcove.install, line 11 - Installation file for Brightcove module.
Code
function brightcove_schema() {
$schema = array();
$schema['brightcove_player'] = array(
'description' => 'Stores brightcove players.',
'export' => array(
'key' => 'name',
'key name' => 'Name',
'primary key' => 'pid',
'identifier' => 'preset',
'default hook' => 'brightcove_player',
'api' => array(
'owner' => 'brightcove',
'api' => 'brightcove',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
'unsigned' => TRUE,
'no export' => TRUE,
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'display_name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'player_id' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'player_key' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
),
'primary key' => array(
'pid',
),
'unique keys' => array(
'name' => array(
'name',
),
),
);
$schema['cache_brightcove'] = drupal_get_schema_unprocessed('system', 'cache');
return $schema;
}