Skip to content

Commit

Permalink
Remove IF NOT EXISTS from influxdb output
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Aug 5, 2016
1 parent b55e9e7 commit 9d3ad63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/influxdb/influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (i *InfluxDB) Connect() error {
func createDatabase(c client.Client, database string) error {
// Create Database if it doesn't exist
_, err := c.Query(client.Query{
Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS \"%s\"", database),
Command: fmt.Sprintf("CREATE DATABASE \"%s\"", database),
})
return err
}
Expand Down

0 comments on commit 9d3ad63

Please sign in to comment.