mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
update
This commit is contained in:
@@ -51,7 +51,9 @@ func main() {
|
||||
// Optional migrations for eshop-specific tables only (will be added later)
|
||||
runMigrations, _ := strconv.ParseBool(os.Getenv("RUN_MIGRATIONS"))
|
||||
if runMigrations {
|
||||
log.Println("[eshop] RUN_MIGRATIONS is true, but no eshop-specific migrations are defined yet")
|
||||
if err := database.MigrateDB(dbInstance); err != nil {
|
||||
log.Fatalf("[eshop] Failed to run database migrations: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize Gin router with a similar hardened stack as the main backend
|
||||
|
||||
Reference in New Issue
Block a user