This commit is contained in:
Lizandro Guarnizo
2026-05-27 09:34:21 -05:00
parent 36c9e0a6d5
commit 498e1d5743
5 changed files with 485 additions and 0 deletions
+10
View File
@@ -757,6 +757,16 @@ func MigratePortal() {
}
}
// MigrateLanding crea/actualiza la tabla de sesiones del Landing Generator.
func MigrateLanding() {
db := app.Http.Database.DB
if err := db.AutoMigrate(&models.LandingSession{}); err != nil {
log.Printf("[MIGRATE] Error en MigrateLanding: %v", err)
} else {
log.Println("[MIGRATE] Tabla landing_sessions OK")
}
}
// SeedTelegram agrega el submódulo de Telegram al módulo "Integraciones". Es idempotente.
func SeedTelegram() {
db := app.Http.Database.DB