forked from OpenGamers/abaddon
fix corrupted disk image sqlite error (fixes #51)
This commit is contained in:
@@ -15,7 +15,7 @@ Store::Store(bool mem_store)
|
|||||||
|
|
||||||
m_db.Execute(R"(
|
m_db.Execute(R"(
|
||||||
PRAGMA writable_schema = 1;
|
PRAGMA writable_schema = 1;
|
||||||
DELETE FROM sqlite_master;
|
DELETE FROM sqlite_master WHERE TYPE IN ("view", "table", "index", "trigger");
|
||||||
PRAGMA writable_schema = 0;
|
PRAGMA writable_schema = 0;
|
||||||
VACUUM;
|
VACUUM;
|
||||||
PRAGMA integrity_check;
|
PRAGMA integrity_check;
|
||||||
|
|||||||
Reference in New Issue
Block a user