Remove IF NOT EXISTS from influxdb output
This commit is contained in:
parent
b55e9e78e3
commit
9d3ad6309e
|
@ -146,7 +146,7 @@ func (i *InfluxDB) Connect() error {
|
||||||
func createDatabase(c client.Client, database string) error {
|
func createDatabase(c client.Client, database string) error {
|
||||||
// Create Database if it doesn't exist
|
// Create Database if it doesn't exist
|
||||||
_, err := c.Query(client.Query{
|
_, err := c.Query(client.Query{
|
||||||
Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS \"%s\"", database),
|
Command: fmt.Sprintf("CREATE DATABASE \"%s\"", database),
|
||||||
})
|
})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue