You are here

function jplayer_protect_update_7001 in jPlayer 7.2

Add a serial column for the denied statistics.

File

jplayer_protect/jplayer_protect.install, line 62
Installation hooks for the jplayer_protect module.

Code

function jplayer_protect_update_7001() {
  $ret = array();
  $spec = array(
    'description' => 'Primary Key: Unique denied event ID.',
    'type' => 'serial',
    'not null' => TRUE,
  );
  $keys_new = array(
    'primary key' => array(
      'did',
    ),
  );
  db_drop_primary_key('jplayer_protect_denied');
  db_add_field('jplayer_protect_denied', 'did', $spec, $keys_new);
  return $ret;
}