Skip to content

Commit 75d5c75

Browse files
committed
Change the NO_VERSION_CHECK value
1 parent 472e91c commit 75d5c75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqliter-driver/src/nativeCommonMain/kotlin/co/touchlab/sqliter/DatabaseConfiguration.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ import co.touchlab.sqliter.interop.Logger
2424
* to an encrypted db.
2525
*
2626
* Using this value is a bit of a hack. The next major version will likely include a refactor of config.
27+
*
28+
* User version is usually positive, but there are no enforced restrictions from the sqlite side. Using an "uncommon"
29+
* negative number in case somebody uses negatives for some reason.
2730
*/
28-
const val NO_VERSION_CHECK = -1
31+
const val NO_VERSION_CHECK = -50_001
2932

3033
data class DatabaseConfiguration(
3134
val name: String?,

0 commit comments

Comments
 (0)