Skip to content

Commit d84e7db

Browse files
sparrcaurrelhebert
authored andcommitted
Remove IF NOT EXISTS from influxdb output
1 parent 21f54d2 commit d84e7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/outputs/influxdb/influxdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (i *InfluxDB) Connect() error {
146146
func createDatabase(c client.Client, database string) error {
147147
// Create Database if it doesn't exist
148148
_, err := c.Query(client.Query{
149-
Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS \"%s\"", database),
149+
Command: fmt.Sprintf("CREATE DATABASE \"%s\"", database),
150150
})
151151
return err
152152
}

0 commit comments

Comments
 (0)