added initialization of corporations table

main
nilo 2024-11-24 10:38:37 -03:00
parent 5850a1e53d
commit 7983421371
1 changed files with 4 additions and 0 deletions

View File

@ -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