function commerce_option_update_7101 in Commerce Product Option 7.2
Add new fields to option sets to make them exportable.
File
- ./
commerce_option.install, line 170
Code
function commerce_option_update_7101() {
db_add_field('commerce_option_set', 'status', array(
'type' => 'int',
'not null' => TRUE,
// Set the default to ENTITY_CUSTOM without using the constant as it is
// not safe to use it at this point.
'default' => 0x1,
'size' => 'tiny',
'description' => 'The exportable status of the entity.',
));
db_add_field('commerce_option_set', 'module', array(
'description' => 'The name of the providing module if the entity has been defined in code.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
));
}