You are here

function hosting_package_update_6002 in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 package/hosting_package.install \hosting_package_update_6002()
  2. 7.4 package/hosting_package.install \hosting_package_update_6002()

Implements hook_update_N().

Add the new old_short_name field which will be used to manage cases where install profiles change names during migrations, such as drupal 6 'default' profile to drupal 7 'standard' profile.

This needs to happen before any interaction with the packaging system can be made.

1 call to hosting_package_update_6002()
hosting_task_update_6000 in task/hosting_task.install
Implements hook_update_N().

File

package/hosting_package.install, line 386
Define database schema and update functions for the package management module.

Code

function hosting_package_update_6002() {
  $ret = array();
  if (!variable_get('hosting_package_update_6002_run', FALSE)) {
    db_add_field($ret, 'hosting_package', 'old_short_name', array(
      'type' => 'text',
      'size' => 'big',
      'not null' => TRUE,
      'default' => '',
    ));
    variable_set('hosting_package_update_6002_run', TRUE);
  }
  return $ret;
}