diff --git a/pkg/api/store/store.go b/pkg/api/store/store.go index 36839b6c..e08b38c3 100644 --- a/pkg/api/store/store.go +++ b/pkg/api/store/store.go @@ -36,10 +36,23 @@ func ConnectDB() (*gorm.DB, error) { func InitDB() { db, _ := ConnectDB() - result := db.AutoMigrate(&user.User{}, &group.Group{}, &token.Token{}, &network.Network{}, &network.IP{}, - &network.JPNICAdmin{}, &network.JPNICTech{}, - &connection.Connection{}, &jpnicAdmin.JpnicAdmin{}, &jpnicTech.JpnicTech{}, ¬ice.Notice{}, - &ticket.Ticket{}, &chat.Chat{}, &noc.NOC{}, &gateway.Gateway{}, &nocRouter.Router{}) + result := db.AutoMigrate( + &user.User{}, + &group.Group{}, + &token.Token{}, + &network.Network{}, + &network.IP{}, + &network.JPNICAdmin{}, + &network.JPNICTech{}, + &connection.Connection{}, + &jpnicAdmin.JpnicAdmin{}, + &jpnicTech.JpnicTech{}, + ¬ice.Notice{}, + &ticket.Ticket{}, + &chat.Chat{}, + &noc.NOC{}, + &gateway.Gateway{}, + &nocRouter.Router{}, + ) log.Println(result.Error) - //return nil }