Skip to content

Commit cd145ef

Browse files
ashishkumar468maskaravivek
authored andcommitted
* Bug fix issue commons-app#2476 * Support db migrations from version 5 * support migration(alter table) for versions >5
1 parent 546322a commit cd145ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/ContributionDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public static void onUpdate(SQLiteDatabase db, int from, int to) {
300300
onUpdate(db, from, to);
301301
return;
302302
}
303-
if (from == 8) {
303+
if (from > 5) {
304304
// Added place field
305305
db.execSQL(ADD_WIKI_DATA_ENTITY_ID_FIELD);
306306
from++;

0 commit comments

Comments
 (0)