mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
changed column name (#4288)
This commit is contained in:
parent
c3d28eb81e
commit
5c02b2fc0a
2 changed files with 3 additions and 3 deletions
|
|
@ -191,7 +191,7 @@ public class BookmarkLocationsDao {
|
||||||
public static final String TABLE_NAME = "bookmarksLocations";
|
public static final String TABLE_NAME = "bookmarksLocations";
|
||||||
|
|
||||||
static final String COLUMN_NAME = "location_name";
|
static final String COLUMN_NAME = "location_name";
|
||||||
static final String COLUMN_LANGUAGE = "location_lang";
|
static final String COLUMN_LANGUAGE = "location_language";
|
||||||
static final String COLUMN_DESCRIPTION = "location_description";
|
static final String COLUMN_DESCRIPTION = "location_description";
|
||||||
static final String COLUMN_LAT = "location_lat";
|
static final String COLUMN_LAT = "location_lat";
|
||||||
static final String COLUMN_LONG = "location_long";
|
static final String COLUMN_LONG = "location_long";
|
||||||
|
|
@ -294,7 +294,7 @@ public class BookmarkLocationsDao {
|
||||||
}
|
}
|
||||||
if (from == 13){
|
if (from == 13){
|
||||||
try {
|
try {
|
||||||
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_lang STRING;");
|
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_language STRING;");
|
||||||
} catch (SQLiteException exception){
|
} catch (SQLiteException exception){
|
||||||
Timber.e(exception);
|
Timber.e(exception);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -268,7 +268,7 @@ class BookMarkLocationDaoTest {
|
||||||
@Test
|
@Test
|
||||||
fun migrateTableVersionFrom_v13_to_v14() {
|
fun migrateTableVersionFrom_v13_to_v14() {
|
||||||
onUpdate(database, 13, 14)
|
onUpdate(database, 13, 14)
|
||||||
verify(database).execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_lang STRING;")
|
verify(database).execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_language STRING;")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue