add current version case

This commit is contained in:
Ted Unangst 2019-06-27 23:19:22 -04:00
parent 67d57f56d8
commit 3922b7ff86
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ func upgradedb() {
doordie(db, "alter table users add column options text") doordie(db, "alter table users add column options text")
doordie(db, "update users set options = ''") doordie(db, "update users set options = ''")
doordie(db, "update config set value = 12 where key = 'dbversion'") doordie(db, "update config set value = 12 where key = 'dbversion'")
case 12:
default: default:
log.Fatalf("can't upgrade unknown version %d", dbversion) log.Fatalf("can't upgrade unknown version %d", dbversion)
} }