You are here

function deploy_update_6004 in Deploy - Content Staging 6

Implementation of hook_update().

Add new field and settings for pluggable authentication.

File

./deploy.install, line 273
Contains install and update functions for Deploy.

Code

function deploy_update_6004() {
  $update = array();
  db_add_field($update, 'deploy_servers', 'auth_type', array(
    'type' => 'varchar',
    'length' => 100,
    'not null' > TRUE,
  ));

  // Also update all existing servers to use session ids (the only choice
  // possible previously).
  db_query("update {deploy_servers} set auth_type = 'deploy_sessid'");
  return $update;
}