You are here

function location_update_3 in Location 7.3

Same name and namespace in other branches
  1. 5.3 location.install \location_update_3()
  2. 5 location.install \location_update_3()
  3. 5 location_upgrade.php \location_update_3()
  4. 6.3 location.install \location_update_3()
  5. 7.5 location.install \location_update_3()
  6. 7.4 location.install \location_update_3()

Legacy update 3.

Allow for postgresql support by renaming the oid column, which is a reserved name on postgresql.

File

./location.install, line 350
Install, update and uninstall functions for the location module.

Code

function location_update_3() {
  db_change_field('location', 'oid', 'eid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  if (module_exists('views')) {
    views_invalidate_cache();
  }
  return t("The schema for location module has been updated.  The update is such that you may want to re-resave any views you have that may include locations.");
}