You are here

function hosting_https_update_7001 in Aegir HTTPS 7.3

Add the client_authentication column with defaults to the database.

File

./hosting_https.install, line 95
Define the database schema and uninstall function for the hosting_https module.

Code

function hosting_https_update_7001() {
  $schema = hosting_https_schema();
  $field = $schema['hosting_https_site']['fields']['client_authentication'];
  db_add_field('hosting_https_site', 'client_authentication', $field);
  db_update('hosting_https_site')
    ->fields(array(
    'client_authentication' => 0,
  ))
    ->execute();
}