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

Commit

Permalink
resolve merged migration test conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
BMItr committed Mar 31, 2021
1 parent 2443a06 commit 91602de
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ class ContactDiaryDatabaseMigrationTest : BaseTestInstrumentation() {
}

@Test
fun migrate2To3_failure_throws() {
fun migrate2To3_failure_throws_SQLiteException() {
helper.createDatabase(DB_NAME, 2).apply {
execSQL("DROP TABLE IF EXISTS locations")
// Has incompatible existing column phoneNumber of wrong type
execSQL("CREATE TABLE IF NOT EXISTS `locations` (`locationId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `locationName` TEXT NOT NULL, `phoneNumber` TEXT, `emailAddress` TEXT, `traceLocationGUID` INTEGER)")
// Has incompatible existing column traceLocationID of wrong type
execSQL("CREATE TABLE IF NOT EXISTS `locations` (`locationId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `locationName` TEXT NOT NULL, `phoneNumber` TEXT, `emailAddress` TEXT, `traceLocationID` INTEGER)")
close()
}

Expand Down

0 comments on commit 91602de

Please sign in to comment.