mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fixed BookmarkLocationsDao DB migration (#3793)
This commit is contained in:
parent
ac3e5158be
commit
d02b959341
1 changed files with 2 additions and 3 deletions
|
|
@ -263,10 +263,9 @@ public class BookmarkLocationsDao {
|
|||
onUpdate(db, from, to);
|
||||
return;
|
||||
}
|
||||
if (from == 10 && to == 11) {
|
||||
from++;
|
||||
if (from == 10) {
|
||||
//This is safe, and can be called clean, as we/I do not remember the appropriate version for this
|
||||
//We are anyways switching to room, these things won't be nescessary then
|
||||
//We are anyways switching to room, these things won't be necessary then
|
||||
try {
|
||||
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
|
||||
}catch (SQLiteException exception){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue