mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
BUGFIX: fix for sqlite3.3
This commit is contained in:
parent
47a91fe6c5
commit
41af325ea5
@ -363,6 +363,7 @@ class SQLite3Database extends SS_Database {
|
||||
$ok = true;
|
||||
|
||||
if(!SapphireTest::using_temp_db() && !self::$checked_and_repaired) {
|
||||
$this->alterationMessage("SQLite Version " . $this->getVersion(),"repaired");
|
||||
$this->alterationMessage("Checking database integrity","repaired");
|
||||
if($msgs = $this->query('PRAGMA integrity_check')) foreach($msgs as $msg) if($msg['integrity_check'] != 'ok') { Debug::show($msg['integrity_check']); $ok = false; }
|
||||
$this->query('VACUUM');
|
||||
|
Loading…
Reference in New Issue
Block a user