pull/429/head
Hunter Long 2020-03-17 00:34:20 -07:00
parent 8170885236
commit f4007999cd
1 changed files with 1 additions and 1 deletions

View File

@ -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 {