You are here

function brightcove_update_7001 in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.2 brightcove.install \brightcove_update_7001()
  2. 7.4 brightcove.install \brightcove_update_7001()
  3. 7.5 brightcove.install \brightcove_update_7001()

Adds brightcove_player table.

File

./brightcove.install, line 72
Installation file for Brightcove module.

Code

function brightcove_update_7001() {
  db_create_table('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',
    ),
    'unique keys' => array(
      'name' => array(
        'name',
      ),
    ),
  ));
}