You are here

public function Schema::setRecoveryModel in Drupal driver for SQL Server and SQL Azure 8

Change Database recovery model.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php, line 546
Definition of Drupal\Driver\Database\sqlsrv\Schema

Class

Schema

Namespace

Drupal\Driver\Database\sqlsrv

Code

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