mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
* Fix Missing Column Issue * Fix tests
This commit is contained in:
parent
38b6aa6ec8
commit
7a74549b59
1 changed files with 3 additions and 3 deletions
|
|
@ -284,7 +284,7 @@ public class BookmarkLocationsDao {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (from == 12) {
|
||||
if (from >= 12) {
|
||||
try {
|
||||
db.execSQL(
|
||||
"ALTER TABLE bookmarksLocations ADD COLUMN location_destroyed STRING;");
|
||||
|
|
@ -292,14 +292,14 @@ public class BookmarkLocationsDao {
|
|||
Timber.e(exception);
|
||||
}
|
||||
}
|
||||
if (from == 13){
|
||||
if (from >= 13){
|
||||
try {
|
||||
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_language STRING;");
|
||||
} catch (SQLiteException exception){
|
||||
Timber.e(exception);
|
||||
}
|
||||
}
|
||||
if (from == 14){
|
||||
if (from >= 14){
|
||||
try {
|
||||
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_exists STRING;");
|
||||
} catch (SQLiteException exception){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue