Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
if err != nil {
return fmt.Errorf("createuser failed: %s", err)
}
- _, err = conn.ExecContext(ctx, `CREATE DATABASE `+pq.QuoteIdentifier(super.cluster.PostgreSQL.Connection["dbname"]))
+ _, err = conn.ExecContext(ctx, `CREATE DATABASE `+pq.QuoteIdentifier(super.cluster.PostgreSQL.Connection["dbname"])+` WITH TEMPLATE template0 ENCODING 'utf8'`)
if err != nil {
return fmt.Errorf("createdb failed: %s", err)
}
"dbname": "arvados_test",
"user": "arvados",
"password": "insecure_arvados_test",
+ "template": "template0", # used by RailsAPI when [re]creating the database
}
localhost = "127.0.0.1"