Skip to content

Commit

Permalink
fixed auto migrate issues (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed May 26, 2023
1 parent 9f55a1d commit c362fd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ func InitDB() {
fmt.Println("db connected")

// migrate table changes
db.AutoMigrate(&Person{}, &Channel{}, &LeaderBoard{}, &ConnectionCodes{})
db.AutoMigrate(&Person{})
db.AutoMigrate(&Channel{})
db.AutoMigrate(&LeaderBoard{})
db.AutoMigrate(&ConnectionCodes{})

people := DB.GetAllPeople()
for _, p := range people {
Expand Down

0 comments on commit c362fd8

Please sign in to comment.