Automatically enable the btree_gist extension

This simplifies the install instructions. Loading from structure.sql is already handled.
This commit is contained in:
Andy Allan 2021-03-10 18:20:03 +00:00
parent 01b84a8107
commit 6c5c36deac
5 changed files with 4 additions and 15 deletions

View file

@ -36,9 +36,6 @@ if [ "$db_user_exists" != "1" ]; then
sudo -u postgres createuser -s vagrant
sudo -u vagrant createdb -E UTF-8 -O vagrant openstreetmap
sudo -u vagrant createdb -E UTF-8 -O vagrant osm_test
# add btree_gist extension
sudo -u vagrant psql -c "create extension btree_gist" openstreetmap
sudo -u vagrant psql -c "create extension btree_gist" osm_test
fi