chore: add database migration prompt

This commit is contained in:
JustSong 2023-10-02 12:13:30 +08:00
parent 4701897e2e
commit cbd62011b8

View File

@ -81,6 +81,7 @@ func InitDB() (err error) {
if !common.IsMasterNode {
return nil
}
common.SysLog("database migration started")
err = db.AutoMigrate(&Channel{})
if err != nil {
return err