Include pg_trgm in postgres vm install

This commit is contained in:
Tom Russell 2019-04-09 09:34:46 +01:00
parent 728a064583
commit b6e67e1f41

View File

@ -88,7 +88,9 @@ su postgres -c "psql -c \"SELECT 1 FROM pg_database WHERE datname = 'vagrant';\"
# Create extensions
su vagrant -c "psql -c \"create extension postgis; create extension pgcrypto;\" "
su vagrant -c "psql -c \"create extension postgis;\" "
su vagrant -c "psql -c \"create extension pgcrypto;\" "
su vagrant -c "psql -c \"create extension pg_trgm;\" "
# Run all 'up' migrations to create tables, data types, indexes
su vagrant -c "ls /vagrant/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql < \$migration; done;"