fix error "extension "hstore" already exists"

Error executing 'postInstallation': ERROR:  extension "hstore" already exists
This commit is contained in:
bill2004158 2017-11-13 10:31:31 +08:00 committed by GitHub
parent 232311aa8c
commit ad0bf66c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ echo "Creating PostgreSQL databases..."
psql -d postgres -c "ALTER USER vagrant WITH PASSWORD 'password';" psql -d postgres -c "ALTER USER vagrant WITH PASSWORD 'password';"
psql -d postgres -c "create database discourse_development owner vagrant encoding 'UTF8' TEMPLATE template0;" psql -d postgres -c "create database discourse_development owner vagrant encoding 'UTF8' TEMPLATE template0;"
psql -d postgres -c "create database discourse_test owner vagrant encoding 'UTF8' TEMPLATE template0;" psql -d postgres -c "create database discourse_test owner vagrant encoding 'UTF8' TEMPLATE template0;"
psql -d discourse_development -c "CREATE EXTENSION hstore;" psql -d discourse_development -c "CREATE EXTENSION IF NOT EXISTS hstore;"
psql -d discourse_development -c "CREATE EXTENSION pg_trgm;" psql -d discourse_development -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
## Start Redis (Redis was installed by Homebrew using `brew bundle`) ## ## Start Redis (Redis was installed by Homebrew using `brew bundle`) ##
echo "Loading Redis..." echo "Loading Redis..."