Skip to content

Commit

Permalink
chore: add database migration prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Oct 2, 2023
1 parent 4701897 commit cbd6201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbd6201

Please sign in to comment.