mysql: began work on backend macro engine

This commit is contained in:
Torkel Ödegaard
2017-04-19 10:09:52 +02:00
parent 62d11c147b
commit e164eba677
6 changed files with 124 additions and 17 deletions

View File

@@ -24,7 +24,6 @@ func AddMigrations(mg *Migrator) {
addPreferencesMigrations(mg)
addAlertMigrations(mg)
addAnnotationMig(mg)
addStatsMigrations(mg)
addTestDataMigrations(mg)
}

View File

@@ -14,7 +14,7 @@ func init() {
func sqlRandomWalk(m1 string, m2 string, intWalker int64, floatWalker float64, sess *session) error {
timeWalker := time.Now().UTC().Add(time.Hour * -1)
timeWalker := time.Now().UTC().Add(time.Hour * -200)
now := time.Now().UTC()
step := time.Minute
@@ -29,7 +29,7 @@ func sqlRandomWalk(m1 string, m2 string, intWalker int64, floatWalker float64, s
timeWalker = timeWalker.Add(step)
row.Id = 0
row.ValueBigInt += rand.Int63n(100) - 100
row.ValueBigInt += rand.Int63n(200) - 100
row.ValueDouble += rand.Float64() - 0.5
row.ValueFloat += rand.Float32() - 0.5
row.TimeEpoch = timeWalker.Unix()