projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b150cad
)
make sure public schema is owned by discourse
author
Régis Hanol
<regis@hanol.fr>
Mon, 17 Feb 2014 18:13:31 +0000
(19:13 +0100)
committer
Régis Hanol
<regis@hanol.fr>
Mon, 17 Feb 2014 18:13:31 +0000
(19:13 +0100)
we need to be owner of the public schema when restoring a backup
templates/postgres.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/postgres.template.yml
b/templates/postgres.template.yml
index 1c83fc7ebadea31fc06cc5c653cdba9a5409174d..e0d471a093b6c6ea1945d4114213ebf5df1ed72a 100644
(file)
--- a/
templates/postgres.template.yml
+++ b/
templates/postgres.template.yml
@@
-108,6
+108,7
@@
run:
cmd: sudo -u postgres psql discourse
raise_on_fail: false
+ - exec: /bin/bash -c 'sudo -u postgres psql discourse <<< "alter schema public owner to discourse;"'
- exec: /bin/bash -c 'sudo -u postgres psql discourse <<< "create extension if not exists hstore;"'
- exec: /bin/bash -c 'sudo -u postgres psql discourse <<< "create extension if not exists pg_trgm;"'