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;