function og_update_7101 in Organic groups 7
Same name and namespace in other branches
- 7.2 og.install \og_update_7101()
Rename the 'name' column to 'type' in {OG membership}.
File
- ./
og.install, line 743 - Install, update, and uninstall functions for the Organic groups module.
Code
function og_update_7101() {
if (db_field_exists('og_membership', 'type')) {
// Return early if field already created in og_update_7000().
return;
}
$column = array(
'description' => 'Reference to a group membership type.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
);
db_change_field('og_membership', 'name', 'type', $column);
}