From fd72f658c0f97504cb93ebb0c1310c351d9cdb22 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 21 Nov 2019 14:40:12 -0500 Subject: [PATCH] Fix SQL command when creating magiskdb --- native/jni/core/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/core/db.cpp b/native/jni/core/db.cpp index ce3479f7b..c644e0b7e 100644 --- a/native/jni/core/db.cpp +++ b/native/jni/core/db.cpp @@ -138,7 +138,7 @@ static char *open_and_init_db(sqlite3 *&db) { upgrade = true; } if (ver < 10) { - sqlite3_exec(db, "DROP TABLE logs", nullptr, nullptr, &err); + sqlite3_exec(db, "DROP TABLE IF EXISTS logs", nullptr, nullptr, &err); err_ret(err); ver = 10; upgrade = true;