all repos — honk @ 979cc34937c7373814c80b82bbf1a26ffb679259

my fork of honk

set a dummy convoy for all blanks
Ted Unangst tedu@tedunangst.com
Sat, 12 Oct 2019 23:36:43 -0400
commit

979cc34937c7373814c80b82bbf1a26ffb679259

parent

4486057adcd0805c66e1e1a29f06c466508be110

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M upgradedb.goupgradedb.go

@@ -269,7 +269,10 @@ doordie(db, "delete from zonkers where wherefore in ('zord', 'zilence', 'zoggle', 'zonker', 'zomain')")

doordie(db, "update config set value = 24 where key = 'dbversion'") fallthrough case 24: - + doordie(db, "update honks set convoy = 'missing-' || abs(random() % 987654321) where convoy = ''") + doordie(db, "update config set value = 25 where key = 'dbversion'") + fallthrough + case 25: default: log.Fatalf("can't upgrade unknown version %d", dbversion) }
M util.goutil.go

@@ -74,7 +74,7 @@ var alreadyopendb *sql.DB

var dbname = "honk.db" var blobdbname = "blob.db" var stmtConfig *sql.Stmt -var myVersion = 24 +var myVersion = 25 func initdb() { schema, err := ioutil.ReadFile("schema.sql")