function uc_roles_update_6002 in Ubercart 6.2
File
- uc_roles/
uc_roles.install, line 208 - Install, update and uninstall functions for the uc_roles module.
Code
function uc_roles_update_6002() {
$ret = array();
$schema = array(
'reid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'rpid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
);
db_drop_primary_key($ret, 'uc_roles_products');
db_add_field($ret, 'uc_roles_products', 'rpid', $schema['rpid'], array(
'primary key' => array(
'rpid',
),
));
db_add_field($ret, 'uc_roles_expirations', 'reid', $schema['reid'], array(
'primary key' => array(
'reid',
),
));
return $ret;
}