initial auth route
This commit is contained in:
@@ -2,7 +2,8 @@ package database
|
||||
|
||||
import (
|
||||
"api/globals"
|
||||
// "api/models"
|
||||
"api/models"
|
||||
|
||||
// "api/utils"
|
||||
"fmt"
|
||||
"log"
|
||||
@@ -42,9 +43,9 @@ func ConnectDB() error {
|
||||
|
||||
log.Println("Migrating database tables")
|
||||
|
||||
// if result := db.AutoMigrate(&models.User{}); result != nil {
|
||||
// return result
|
||||
// }
|
||||
if result := db.AutoMigrate(&models.User{}); result != nil {
|
||||
return result
|
||||
}
|
||||
|
||||
// if result := db.AutoMigrate(&models.Event{}); result != nil {
|
||||
// return result
|
||||
|
||||
Reference in New Issue
Block a user