fix(db): wrong relation and bad where condition
This commit is contained in:
parent
01bafe9bf1
commit
61c7bf4567
6 changed files with 26 additions and 19 deletions
2
main.go
2
main.go
|
@ -36,7 +36,7 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
err = gokord.DB.AutoMigrate(&user.Copaing{}, &config.GuildConfig{}, &config.XpRole{})
|
||||
err = gokord.DB.AutoMigrate(&user.Copaing{}, &config.GuildConfig{}, &config.XpRole{}, &user.CopaingXP{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue