Skip to content

Commit

Permalink
fix: automigrate
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 25, 2024
1 parent 9f3966d commit 13dd267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/db.connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func InitDatabase(conf *config.DbConfig, isDebug bool) (db *gorm.DB, err error)
return nil, err
}

err = db.AutoMigrate(&model.User{}, &model.Group{}, &model.Selection{}, &model.Stamp{})
err = db.AutoMigrate(&model.Group{}, &model.User{}, &model.Selection{}, &model.Stamp{}, &model.CheckIn{})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 13dd267

Please sign in to comment.