You are here

function hosting_package_update_6002 in Hosting 6.2

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

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
Add a delta column to tasks so that we have a measure of duration of tasks

File

package/hosting_package.install, line 360
Install, update and uninstall 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;
}