You are here

function hosting_package_update_6 in Hosting 5

Same name and namespace in other branches
  1. 6.2 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 136

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;
}