You are here

function brightcove_update_7003 in Brightcove Video Connect 7.5

Same name and namespace in other branches
  1. 7.3 brightcove.install \brightcove_update_7003()
  2. 7.4 brightcove.install \brightcove_update_7003()

Create individual primary key for players.

File

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

Code

function brightcove_update_7003() {
  $spec = array(
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
  );
  db_drop_primary_key('brightcove_player');
  db_add_field('brightcove_player', 'pid', $spec, array(
    'primary key' => array(
      'pid',
    ),
  ));
}