added initialization of corporations table
parent
5850a1e53d
commit
7983421371
|
|
@ -62,6 +62,10 @@ func ConnectDB() error {
|
|||
return result
|
||||
}
|
||||
|
||||
if result := db.AutoMigrate(&models.Corporation{}); result != nil {
|
||||
return result
|
||||
}
|
||||
|
||||
// Count how many servers we have on the database. If none, creates our initial server.
|
||||
var servers []models.Server
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue