function party_update_7026 in Party 7
Rename merged to hidden and add archived.
File
- ./
party.install, line 204 - Contains install hooks for the CRM party module.
Code
function party_update_7026() {
// Update the name of the merged field.
$spec = array(
'description' => 'Boolean flag for whether this party should be hidden.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
);
db_change_field('party', 'merged', 'hidden', $spec);
$spec = array(
'description' => 'Boolean flag for whether this party should be archived.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
);
db_add_field('party', 'archived', $spec);
// Add our indexes.
db_add_index('party', 'archived', array(
'archived',
));
db_add_index('party', 'hidden', array(
'hidden',
));
// Rebuild the schema cache.
drupal_flush_all_caches();
}