Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
InfluxDBStore: do not use deprecated "IF NOT EXISTS" condition when c…
Browse files Browse the repository at this point in the history
…reating DB

`IF NOT EXIST` is the default and only behavior (see [InfluxDB issue here](influxdata/influxdb#5707)),
confirmed working locally.
  • Loading branch information
emidoots committed Apr 27, 2016
1 parent b889733 commit de396a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion influxdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func (in *InfluxDBStore) Close() error {
}

func (in *InfluxDBStore) createDBIfNotExists() error {
q := fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s", in.dbName)
q := fmt.Sprintf("CREATE DATABASE %s", in.dbName)

// If a default retention policy is provided, it's used to extend the query in order to create the database with
// a default retention policy.
Expand Down

0 comments on commit de396a7

Please sign in to comment.