Skip to content

Commit

Permalink
fix: Fix isVersionCovers to handle comparison of 8.0 with 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Jan 29, 2025
1 parent 87d7ea9 commit b184a74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Database private constructor(

/** Whether the version number of the database is equal to or greater than the provided [majorVersion] and [minorVersion]. */
fun isVersionCovers(majorVersion: Int, minorVersion: Int) =
this.majorVersion >= majorVersion && this.minorVersion >= minorVersion
this.majorVersion > majorVersion || (this.majorVersion == majorVersion && this.minorVersion >= minorVersion)

/** Whether the database supports ALTER TABLE with an add column clause. */
val supportsAlterTableWithAddColumn by lazy(
Expand Down

0 comments on commit b184a74

Please sign in to comment.