diff --git a/api/pkg/di/container.go b/api/pkg/di/container.go index edbfebbc..e2d63d61 100644 --- a/api/pkg/di/container.go +++ b/api/pkg/di/container.go @@ -231,13 +231,13 @@ func (container *Container) DedicatedDB() (db *gorm.DB) { } container.logger.Debug(fmt.Sprintf("Running migrations for yugabyte [%T]", db)) - if err = db.AutoMigrate(&entities.Heartbeat{}); err != nil { - container.logger.Fatal(stacktrace.Propagate(err, fmt.Sprintf("cannot migrate %T", &entities.Heartbeat{}))) - } - - if err = db.AutoMigrate(&entities.HeartbeatMonitor{}); err != nil { - container.logger.Fatal(stacktrace.Propagate(err, fmt.Sprintf("cannot migrate %T", &entities.HeartbeatMonitor{}))) - } + //if err = db.AutoMigrate(&entities.Heartbeat{}); err != nil { + // container.logger.Fatal(stacktrace.Propagate(err, fmt.Sprintf("cannot migrate %T", &entities.Heartbeat{}))) + //} + // + //if err = db.AutoMigrate(&entities.HeartbeatMonitor{}); err != nil { + // container.logger.Fatal(stacktrace.Propagate(err, fmt.Sprintf("cannot migrate %T", &entities.HeartbeatMonitor{}))) + //} container.dedicatedDB = db return container.dedicatedDB