From f4007999cdb354396cca3f1c889e26aa07a9ae57 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Tue, 17 Mar 2020 00:34:20 -0700 Subject: [PATCH] fix --- types/configs/latest_sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/configs/latest_sql.go b/types/configs/latest_sql.go index dc2c6411..dc786eab 100644 --- a/types/configs/latest_sql.go +++ b/types/configs/latest_sql.go @@ -23,7 +23,7 @@ func (c *DbConfig) genericMigration(alterStr string, isPostgres bool) error { if err := c.Db.Exec(fmt.Sprintf("ALTER TABLE hits %s COLUMN ping_time%s BIGINT;", alterStr, extra)).Error(); err != nil { return err } - if err := c.Db.Exec(fmt.Sprintf("ALTER TABLE failures %s COLUMN latency%s BIGINT;", alterStr, extra)).Error(); err != nil { + if err := c.Db.Exec(fmt.Sprintf("ALTER TABLE failures %s COLUMN ping_time%s BIGINT;", alterStr, extra)).Error(); err != nil { return err } if err := c.Db.Exec("UPDATE hits SET latency = CAST(latency * 1000000 AS bigint);").Error(); err != nil {