Previous version tried to apply 0->6->1..., which is wrong.
The right order is 0->6->7.
Fixes: https://todo.sr.ht/~bouncepaw/betula/93
---
db/migrations.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/db/migrations.go b/db/migrations.go
index 59084a6..66ee912 100644
--- a/db/migrations.go
+++ b/db/migrations.go
@@ -81,6 +81,7 @@ func handleMigrations() {
// DB was never populated! Let's write the latest schema we have.
if !found {
mustExec(schemaV6) // Up to 6
+ curver = 6
goto past6 // And newer
return
}
--
2.42.0