Fix: update database

This commit is contained in:
zijiren233 2024-06-02 01:02:06 +08:00
parent c34bdc9a66
commit 793c119fa3
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@ type dbVersion struct {
Upgrade func(*gorm.DB) error
}
const CurrentVersion = "0.0.9"
const CurrentVersion = "0.0.10"
var models = []any{
new(model.Setting),
@ -73,6 +73,9 @@ var dbVersions = map[string]dbVersion{
NextVersion: "0.0.9",
},
"0.0.9": {
NextVersion: "0.0.10",
},
"0.0.10": {
NextVersion: "",
},
}