mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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);
|
onUpdate(db, from, to);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (from == 10 && to == 11) {
|
if (from == 10) {
|
||||||
from++;
|
|
||||||
//This is safe, and can be called clean, as we/I do not remember the appropriate version for this
|
//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 {
|
try {
|
||||||
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
|
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
|
||||||
}catch (SQLiteException exception){
|
}catch (SQLiteException exception){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue