delete to be orphaned honks first during upgrade
This commit is contained in:
parent
a65f8d42e3
commit
60ab80cdc1
|
@ -65,6 +65,7 @@ func upgradedb() {
|
||||||
doordie(db, "update config set value = 5 where key = 'dbversion'")
|
doordie(db, "update config set value = 5 where key = 'dbversion'")
|
||||||
fallthrough
|
fallthrough
|
||||||
case 5:
|
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, "delete from honks where what = 'zonk'")
|
||||||
doordie(db, "update config set value = 6 where key = 'dbversion'")
|
doordie(db, "update config set value = 6 where key = 'dbversion'")
|
||||||
fallthrough
|
fallthrough
|
||||||
|
|
Loading…
Reference in New Issue