You are here

public function Scheme::setRecoveryModel in Drupal driver for SQL Server and SQL Azure 8.2

Change the database recovery model.

Parameters

RecoveryModel $model: The model to update to.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php, line 731

Class

Scheme

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function setRecoveryModel(RecoveryModel $model) {
  $this->cnn
    ->query("ALTER {$this->cnn->options['name']} model SET RECOVERY {$model->__toString()}");
}