Loading core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php +3 −3 Original line number Diff line number Diff line Loading @@ -184,9 +184,9 @@ public function __destruct() { // We can prune the database file if it doesn't have any tables. if ($count == 0 && $this->connectionOptions['database'] != ':memory:' && file_exists($this->connectionOptions['database'] . '-' . $prefix)) { // Detaching the database fails at this point, but no other queries // are executed after the connection is destructed so we can simply // remove the database file. // Detach the database. $this->query('DETACH DATABASE :schema', [':schema' => $prefix]); // Destroy the database file. unlink($this->connectionOptions['database'] . '-' . $prefix); } } Loading Loading
core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php +3 −3 Original line number Diff line number Diff line Loading @@ -184,9 +184,9 @@ public function __destruct() { // We can prune the database file if it doesn't have any tables. if ($count == 0 && $this->connectionOptions['database'] != ':memory:' && file_exists($this->connectionOptions['database'] . '-' . $prefix)) { // Detaching the database fails at this point, but no other queries // are executed after the connection is destructed so we can simply // remove the database file. // Detach the database. $this->query('DETACH DATABASE :schema', [':schema' => $prefix]); // Destroy the database file. unlink($this->connectionOptions['database'] . '-' . $prefix); } } Loading