Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
Run account upgrade on DB only when upgrading from below v3
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
  • Loading branch information
msfjarvis committed Sep 11, 2020
1 parent cff7dc4 commit ceaa9f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DankSqliteOpenHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME
db.execSQL(AccountManager.QUERY_CREATE_TABLE)
}

if (oldVersion == 2 && newVersion == 3) {
if (oldVersion < 3 && newVersion == 3) {
db.execSQL(AccountManager.QUERY_CREATE_TABLE)
}
}
Expand Down

0 comments on commit ceaa9f1

Please sign in to comment.