function commerce_option_update_7102 in Commerce Product Option 7.2
Add new fields to option sets to make them work with entity reference.
File
- ./
commerce_option.install, line 192
Code
function commerce_option_update_7102() {
db_drop_primary_key('commerce_option_set');
// Add the new field
db_add_field('commerce_option_set', 'option_set_id', array(
'description' => 'The primary identifier for the option set.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
), array(
'primary key' => array(
'option_set_id',
),
));
}