From 2690febf20aecbe3ddc52d9574b9f19c8b93171c Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 29 Nov 2021 21:51:15 -0500 Subject: fix corrupted disk image sqlite error (fixes #51) --- src/discord/store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/discord/store.cpp') diff --git a/src/discord/store.cpp b/src/discord/store.cpp index 1cb7231..5e4e3b3 100644 --- a/src/discord/store.cpp +++ b/src/discord/store.cpp @@ -15,7 +15,7 @@ Store::Store(bool mem_store) m_db.Execute(R"( PRAGMA writable_schema = 1; - DELETE FROM sqlite_master; + DELETE FROM sqlite_master WHERE TYPE IN ("view", "table", "index", "trigger"); PRAGMA writable_schema = 0; VACUUM; PRAGMA integrity_check; -- cgit v1.2.3