You are here

function hosting_package_update_6 in Hosting 6.2

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

File

package/hosting_package.install, line 234
Install, update and uninstall for the package management module.

Code

function hosting_package_update_6() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {hosting_package_instance}");
  $ret[] = update_sql("UPDATE {sequences} SET id=1 WHERE name='{hosting_package_instance}_iid'");
  $result = db_query("SELECT nid FROM {node} WHERE type='platform' AND status=1");
  while ($platform = db_fetch_object($result)) {
    hosting_add_task($platform->nid, 'verify');
  }
  $result = db_query("SELECT nid FROM {node} WHERE type='site' AND status=1");
  while ($site = db_fetch_object($result)) {
    hosting_add_task($site->nid, 'verify');
  }
  return $ret;
}