From 60ab80cdc15cbac17d6d15f2421d863dd76bffa0 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 6 May 2019 10:43:00 -0400 Subject: [PATCH] delete to be orphaned honks first during upgrade --- upgradedb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/upgradedb.go b/upgradedb.go index 611b36f..eb26026 100644 --- a/upgradedb.go +++ b/upgradedb.go @@ -65,6 +65,7 @@ func upgradedb() { doordie(db, "update config set value = 5 where key = 'dbversion'") fallthrough case 5: + doordie(db, "delete from donks where honkid in (select honkid from honks where what = 'zonk')") doordie(db, "delete from honks where what = 'zonk'") doordie(db, "update config set value = 6 where key = 'dbversion'") fallthrough