function location_update_5302 in Location 7.5
Same name and namespace in other branches
- 5.3 location.install \location_update_5302()
- 6.3 location.install \location_update_5302()
- 7.3 location.install \location_update_5302()
- 7.4 location.install \location_update_5302()
Location 3.x update 3. Add genid to {location_instance}.
File
- ./
location.install, line 670 - Install, update and uninstall functions for the location module.
Code
function location_update_5302() {
// OK, here's the deal. I retrofitted 5301 on Aug 18 2008 to integrate the genid.
// This was needed to fix the pre location 3.x todo item regarding keeping non
// user, non node data intact. People doing an update after Aug 18 will already
// have the genid column in place, so it can be safely skipped.
if (!variable_get('location_update_5301_retrofit', FALSE)) {
db_add_field('location_instance', 'genid', array(
'description' => 'Generic reference key.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
));
db_add_index('location_instance', 'genid', array(
'genid',
));
}
}