You are here

function brightcove_schema in Brightcove Video Connect 7.2

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.3 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.',
    'fields' => array(
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'player_id' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'player_key' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}