function hosting_site_update_4 in Hosting 6.2
Same name and namespace in other branches
- 5 site/hosting_site.install \hosting_site_update_4()
- 7.4 site/hosting_site.install \hosting_site_update_4()
- 7.3 site/hosting_site.install \hosting_site_update_4()
Add verified timestamp to the site
File
- site/
hosting_site.install, line 181
Code
function hosting_site_update_4() {
$ret = array();
$now = time();
$ret[] = update_sql("ALTER TABLE {hosting_site} ADD COLUMN verified int(10) NOT NULL default '0'");
db_query("UPDATE {hosting_site} SET verified=%d WHERE status=1", $now);
return $ret;
}