Remove IF NOT EXISTS from influxdb output

This commit is contained in:
Cameron Sparr 2016-08-05 13:55:02 +01:00
parent b55e9e78e3
commit 9d3ad6309e
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
}