~bouncepaw/betula

Fix migration from empty database v1 APPLIED

Goldstein: 1
 Fix migration from empty database

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~bouncepaw/betula/patches/47010/mbox | git am -3
Learn more about email & git

[PATCH] Fix migration from empty database Export this patch

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
LGTM. Applied. Thanks!