function multifield_update_7101 in Multifield 7.2
Same name and namespace in other branches
- 7 multifield.install \multifield_update_7101()
Increase the maximum length of {multifield}.machine_name.
File
- ./
multifield.install, line 133
Code
function multifield_update_7101() {
db_drop_unique_key('multifield', 'machine_name');
$schema = array(
'type' => 'varchar',
'length' => 128,
'default' => '',
'not null' => TRUE,
);
db_change_field('multifield', 'machine_name', 'machine_name', $schema);
db_add_unique_key('multifield', 'machine_name', array(
'machine_name',
));
}