Commit f7c0e407 authored by RikkaW's avatar RikkaW Committed by John Wu

Fix downgrade database

parent 82c7662c
......@@ -149,7 +149,7 @@ static char *open_and_init_db(sqlite3 *&db) {
if (ver > DB_VERSION) {
// Don't support downgrading database
sqlite3_close(db);
return nullptr;
return strdup("Downgrading database is not supported");
}
if (ver < 3) {
// Policies
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment