diff --git a/code/SQLite3SchemaManager.php b/code/SQLite3SchemaManager.php index 5880fbc..a4a6786 100644 --- a/code/SQLite3SchemaManager.php +++ b/code/SQLite3SchemaManager.php @@ -210,7 +210,7 @@ class SQLite3SchemaManager extends DBSchemaManager { $ok = true; - if (SapphireTest::getTempDB()->isUsed() && !self::$checked_and_repaired) { + if (!SapphireTest::getTempDB()->isUsed() && !self::$checked_and_repaired) { $this->alterationMessage("Checking database integrity", "repaired"); // Check for any tables with failed integrity