Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from MarcDonald/fix/add-location-to-migration
Browse files Browse the repository at this point in the history
Add location field to database version 13 to 14 migration
  • Loading branch information
MarcDonald committed Dec 17, 2019
2 parents 73b2a92 + 72c3a7e commit f7253a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Expand Up @@ -31,8 +31,8 @@ android {
minSdkVersion 23
//noinspection OldTargetApi
targetSdkVersion 28
versionCode 32
versionName "1.3.0"
versionCode 33
versionName "1.3.1"
setProperty("archivesBaseName", "Hibi-v$versionName")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Expand Up @@ -207,8 +207,8 @@ abstract class ProductionAppDatabase : RoomDatabase(), AppDatabase {
"content TEXT NOT NULL," +
"location TEXT NOT NULL DEFAULT ''," +
"isFavourite INTEGER NOT NULL DEFAULT 0)")
database.execSQL("INSERT INTO Entry(id, day, month, year, hour, minute, content) " +
"SELECT id, day, month, year, hour, minute, content FROM EntryOLD")
database.execSQL("INSERT INTO Entry(id, day, month, year, hour, minute, content, location) " +
"SELECT id, day, month, year, hour, minute, content, location FROM EntryOLD")
database.execSQL("DROP TABLE EntryOLD")
}
}
Expand Down

0 comments on commit f7253a4

Please sign in to comment.