modified: serv_nginx/api_bb/internal/database/migrate.go
modified: serv_nginx/bbvue/src/stores/user.js add migration for trainingPlan struct
This commit is contained in:
@@ -25,6 +25,7 @@ func (d *Database) Migrate() error {
|
||||
&models.Event{},
|
||||
&models.EventRegistration{},
|
||||
&models.PersonalBest{},
|
||||
&models.TrainingPlan{},
|
||||
// Добавьте другие модели здесь
|
||||
}
|
||||
|
||||
@@ -93,6 +94,8 @@ func getModelName(model interface{}) string {
|
||||
return "Администрирование события"
|
||||
case *models.PersonalBest:
|
||||
return "Персональные достижения"
|
||||
case *models.TrainingPlan:
|
||||
return "Тренировочный план"
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user