function location_update_3 in Location 5
Same name in this branch
- 5 location.install \location_update_3()
- 5 location_upgrade.php \location_update_3()
Same name and namespace in other branches
- 5.3 location.install \location_update_3()
- 6.3 location.install \location_update_3()
- 7.5 location.install \location_update_3()
- 7.3 location.install \location_update_3()
- 7.4 location.install \location_update_3()
File
- ./
location.install, line 109
Code
function location_update_3() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {location} CHANGE oid eid int unsigned NOT NULL default '0'");
break;
}
drupal_set_message("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.");
views_invalidate_cache();
return $ret;
}