You are here

function hosting_package_update_6002 in Hostmaster (Aegir) 6

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 modules/hosting/task/hosting_task.install
Add a delta column to tasks so that we have a measure of duration of tasks

File

modules/hosting/package/hosting_package.install, line 355
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;
}