You are here

function hosting_site_update_4 in Hostmaster (Aegir) 6

Add verified timestamp to the site

File

modules/hosting/site/hosting_site.install, line 177

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