delete to be orphaned honks first during upgrade

This commit is contained in:
Ted Unangst 2019-05-06 10:43:00 -04:00
parent a65f8d42e3
commit 60ab80cdc1
1 changed files with 1 additions and 0 deletions

View File

@ -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