function image_attach_update_6102 in Image 6
Adjust primary key on {image_attach} to allow multiple attachments.
File
- contrib/
image_attach/ image_attach.install, line 141
Code
function image_attach_update_6102() {
$ret = array();
db_drop_primary_key($ret, 'image_attach');
db_add_primary_key($ret, 'image_attach', array(
'nid',
'iid',
));
db_add_field($ret, 'image_attach', 'weight', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
return $ret;
}