Remove IF NOT EXISTS from influxdb output

This commit is contained in:
Cameron Sparr 2016-08-05 13:55:02 +01:00 committed by Aurélien Hébert
parent 21f54d213e
commit d84e7dbcdc
1 changed files with 1 additions and 1 deletions

View File

@ -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
}