Fix SQL command when creating magiskdb

This commit is contained in:
topjohnwu 2019-11-21 14:40:12 -05:00
parent d3b5cf82d8
commit fd72f658c0

View File

@ -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;