rdbms: allow synchronous=OFF for sqlite
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 17 Jun 2019 00:47:32 +0000 (01:47 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 17 Jun 2019 00:47:32 +0000 (01:47 +0100)
Change-Id: I58be09bb170399f3ad94fc3bcc4881932d357a9b

includes/libs/rdbms/database/DatabaseSqlite.php

index 3722ef4..0280362 100644 (file)
@@ -217,7 +217,7 @@ class DatabaseSqlite extends Database {
                        $this->query( 'PRAGMA case_sensitive_like = 1' );
 
                        $sync = $this->connectionVariables['synchronous'] ?? null;
-                       if ( in_array( $sync, [ 'EXTRA', 'FULL', 'NORMAL' ], true ) ) {
+                       if ( in_array( $sync, [ 'EXTRA', 'FULL', 'NORMAL', 'OFF' ], true ) ) {
                                $this->query( "PRAGMA synchronous = $sync" );
                        }