Database reorganize, protocol version bump, migrations

This commit is contained in:
2026-08-26 23:13:47 +02:00
parent 7343300536
commit 4fdeafb73b
31 changed files with 1058 additions and 114 deletions
+7
View File
@@ -0,0 +1,7 @@
plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
}
@@ -0,0 +1,14 @@
data class PhoebenchVersion(val major: Int, val minor: Int, val patch: Int, val note: String = "") {
operator fun compareTo(other: PhoebenchVersion): Int {
// this > other -> return >0
val majorComp = major - other.major
if(majorComp != 0) return majorComp
val minorComp = minor - other.minor
if(minorComp != 0) return minorComp
return patch - other.patch
}
override fun toString(): String = if(note.isNotBlank()) "$major.$minor.$patch-$note" else safeString()
fun safeString() = "$major.$minor.$patch"
}