forked from nextcloud/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix local db version to avoid crash during app upgrade.
- Loading branch information
1 parent
1d6c53c
commit 2a49194
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.nmc | ||
|
||
import com.nextcloud.client.database.NextcloudDatabase | ||
import org.junit.Test | ||
|
||
class DatabaseVersionTest { | ||
|
||
@Test | ||
fun validateDatabaseVersion() { | ||
//for NMC the version will start from 64 only | ||
//validating via test case to check if any test changes done during rebasing or merging | ||
assert(64 == NextcloudDatabase.FIRST_ROOM_DB_VERSION) | ||
} | ||
} |