function commerce_discount_update_7104 in Commerce Discount 7
Changes to commerce_discount schema.
See also
http://drupal.org/node/1854108
File
- ./
commerce_discount.install, line 823 - Install, update, and uninstall functions for the commerce discount module.
Code
function commerce_discount_update_7104() {
// Rename "enabled" to "status" and "status" to "export_status".
db_change_field('commerce_discount', 'status', 'export_status', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0x1,
'size' => 'tiny',
'description' => 'The exportable status of the entity.',
));
db_change_field('commerce_discount', 'enabled', 'status', array(
'type' => 'int',
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
'description' => 'Whether the discount is active.',
));
// Rebuild the schema.
drupal_get_complete_schema(TRUE);
}