From af0947af9adca59f21da8582a06e11a8507b2dbc Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 20 May 2019 11:56:07 -0400 Subject: [PATCH] this was supposed to fix up tonks not bonks --- upgradedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgradedb.go b/upgradedb.go index 9990a45..7a2a43f 100644 --- a/upgradedb.go +++ b/upgradedb.go @@ -84,7 +84,7 @@ func upgradedb() { users := allusers() for _, u := range users { h := fmt.Sprintf("https://%s/u/%s", serverName, u.Username) - doordie(db, fmt.Sprintf("update honks set xid = '%s/h/' || xid, honker = ?, whofore = 2 where userid = ? and honker = '' and (what = 'honk' or what = 'bonk')", h), h, u.UserID) + doordie(db, fmt.Sprintf("update honks set xid = '%s/h/' || xid, honker = ?, whofore = 2 where userid = ? and honker = '' and (what = 'honk' or what = 'tonk')", h), h, u.UserID) doordie(db, "update honks set honker = ?, whofore = 2 where userid = ? and honker = '' and what = 'bonk'", h, u.UserID) } doordie(db, "update config set value = 8 where key = 'dbversion'")