- exec: su postgres -c 'psql discourse -c "create user discourse;"' || true
- exec: su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
- exec: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
- - exec: su postgres -c 'psql template1 -c "create extension hstore;"'
- - exec: su postgres -c 'psql template1 -c "create extension pg_trgm;"'
+ - exec: su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
+ - exec: su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
- exec: su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'