From 3922b7ff86ce12be1fe3b239e967ea45b28a4ae6 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 27 Jun 2019 23:19:22 -0400 Subject: [PATCH] add current version case --- upgradedb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/upgradedb.go b/upgradedb.go index 23d2458..1b326fc 100644 --- a/upgradedb.go +++ b/upgradedb.go @@ -105,6 +105,7 @@ func upgradedb() { doordie(db, "alter table users add column options text") doordie(db, "update users set options = ''") doordie(db, "update config set value = 12 where key = 'dbversion'") + case 12: default: log.Fatalf("can't upgrade unknown version %d", dbversion) }