diff --git a/src/main/kotlin/dev/rvbsm/fsit/config/ConfigMigrations.kt b/src/main/kotlin/dev/rvbsm/fsit/config/ConfigMigrations.kt index 30e3ace9..ea29f50c 100644 --- a/src/main/kotlin/dev/rvbsm/fsit/config/ConfigMigrations.kt +++ b/src/main/kotlin/dev/rvbsm/fsit/config/ConfigMigrations.kt @@ -46,13 +46,13 @@ private val legacyMigrations by lazy { ) } -private val v0Migrations by lazy { +private val v1Migrations by lazy { mapOf( "version=1" to "version!", ) } -private val v1Migrations by lazy { +private val v2Migrations by lazy { mapOf( "version=2" to "version!", @@ -67,8 +67,8 @@ private fun getMigrations(version: Int = 0) = buildMap { if (version <= ANCIENT_VERSION) putAll(ancientMigrations) if (version <= LEGACY_VERSION) putAll(legacyMigrations) - if (version < 1) putAll(v0Migrations) - if (version < 2) putAll(v1Migrations) + if (version < 1) putAll(v1Migrations) + if (version < 2) putAll(v2Migrations) } private val JsonObject.version get() =