diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-11-29 21:51:15 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-11-29 21:51:15 -0500 |
commit | 2690febf20aecbe3ddc52d9574b9f19c8b93171c (patch) | |
tree | 5ddcfc42699ad8685b472760680489d19ec58533 /src | |
parent | af3d278825887c176bf0f1bed1f723f098c75e8f (diff) | |
download | abaddon-portaudio-2690febf20aecbe3ddc52d9574b9f19c8b93171c.tar.gz abaddon-portaudio-2690febf20aecbe3ddc52d9574b9f19c8b93171c.zip |
fix corrupted disk image sqlite error (fixes #51)
Diffstat (limited to 'src')
-rw-r--r-- | src/discord/store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |