You are here

function brightcove_schema in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 8.2 brightcove.install \brightcove_schema()
  2. 8 brightcove.install \brightcove_schema()
  3. 7.7 brightcove.install \brightcove_schema()
  4. 7.2 brightcove.install \brightcove_schema()
  5. 7.4 brightcove.install \brightcove_schema()
  6. 7.5 brightcove.install \brightcove_schema()
  7. 7.6 brightcove.install \brightcove_schema()
  8. 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;
}