function hosting_package_update_6 in Hosting 7.4
Same name and namespace in other branches
- 5 package/hosting_package.install \hosting_package_update_6()
- 6.2 package/hosting_package.install \hosting_package_update_6()
- 7.3 package/hosting_package.install \hosting_package_update_6()
File
- package/
hosting_package.install, line 242 - Define database schema and update functions 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;
}