Fix #3792 Missing Column Issue (#4468)

* Fix Missing Column Issue

* Fix tests
This commit is contained in:
Madhur Gupta 2021-06-21 09:31:00 +05:30 committed by GitHub
parent 38b6aa6ec8
commit 7a74549b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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){