You are here

function hostingService_db_mysql::update in Hostmaster (Aegir) 6

Overrides hostingService::update

File

modules/hosting/db_server/hosting_db_server.service.inc, line 56
Provide the hosting serivce classes for database integration.

Class

hostingService_db_mysql
A MySQL specific db service implementation class.

Code

function update() {
  if (!empty($this->db_passwd)) {
    parent::update();
  }
  else {

    // only do the parent's update routine.
    parent::delete_revision();
    parent::insert();
  }
}