add current version case
This commit is contained in:
parent
67d57f56d8
commit
3922b7ff86
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue