We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isVersionCovers
1 parent edf1416 commit 85d15ddCopy full SHA for 85d15dd
exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt
@@ -72,7 +72,7 @@ class Database private constructor(
72
73
/** Whether the version number of the database is equal to or greater than the provided [majorVersion] and [minorVersion]. */
74
fun isVersionCovers(majorVersion: Int, minorVersion: Int) =
75
- this.majorVersion >= majorVersion && this.minorVersion >= minorVersion
+ this.majorVersion > majorVersion || (this.majorVersion == majorVersion && this.minorVersion >= minorVersion)
76
77
/** Whether the database supports ALTER TABLE with an add column clause. */
78
val supportsAlterTableWithAddColumn by lazy(
0 commit comments