From 7f1f2b80eab3bb5f357b22717ca08a464c69245a Mon Sep 17 00:00:00 2001 From: Max Rosin Date: Sun, 6 Aug 2023 11:54:07 +0200 Subject: [PATCH] [docs] fix postgres create database command (#2071) The current command `create database gotosocial with locale C.UTF-8 template template0;` fails because the locale has to be quoted: ``` postgres=# create database gotosocial with locale C.UTF-8 template template0; ERROR: syntax error at or near "." LINE 1: create database gotosocial with locale C.UTF-8 template temp... ``` Tested manually that it works with the quotes and the official postgres examples also use quotes around the locales: https://www.postgresql.org/docs/current/sql-createdatabase.html --- docs/configuration/database.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration/database.md b/docs/configuration/database.md index 3e66b09fc..294420a36 100644 --- a/docs/configuration/database.md +++ b/docs/configuration/database.md @@ -37,7 +37,7 @@ Then you should have already created database `gotosocial` in Postgres, and give The psql commands to do this will look something like: ```psql -create database gotosocial with locale C.UTF-8 template template0; +create database gotosocial with locale 'C.UTF-8' template template0; create user gotosocial with password 'some_really_good_password'; grant all privileges on database gotosocial to gotosocial; ```