delete to be orphaned honks first during upgrade
Ted Unangst tedu@tedunangst.com
Mon, 06 May 2019 10:43:00 -0400
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
upgradedb.go
→
upgradedb.go
@@ -65,6 +65,7 @@ doordie(db, "update honkers set combos = ''")
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