function paymentreference_update_7101 in Payment 7
Modify field lengths to follow Drupal core.
File
- modules/
paymentreference/ paymentreference.install, line 97 - Installation and uninstallation functions.
Code
function paymentreference_update_7101() {
db_drop_index('paymentreference', 'instance');
db_change_field('paymentreference', 'bundle', 'bundle', array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
));
db_change_field('paymentreference', 'entity_type', 'entity_type', array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
));
db_change_field('paymentreference', 'field_name', 'field_name', array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
));
db_add_index('paymentreference', 'instance', array(
'bundle',
'entity_type',
'field_name',
));
}