function jplayer_protect_update_6001 in jPlayer 6
Add a serial column for the denied statistics.
File
- jplayer_protect/
jplayer_protect.install, line 77 - Installation hooks for the jplayer_protect module.
Code
function jplayer_protect_update_6001() {
$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($ret, 'jplayer_protect_denied');
db_add_field($ret, 'jplayer_protect_denied', 'did', $spec, $keys_new);
return $ret;
}