Skip to content

Instantly share code, notes, and snippets.

@FerPerales
Last active December 14, 2015 12:28
Show Gist options
  • Save FerPerales/5086378 to your computer and use it in GitHub Desktop.
Save FerPerales/5086378 to your computer and use it in GitHub Desktop.
# A small script to install hstore module in Ubuntu
# Dependencies:
#
# * Please make sure you have installed postgres-contrib package
#
# How to customize this script:
#
# * Modify the path (you may require to change the postresql version)
# * If you are not using the default postgresql username and password,
# * change it (default username is postgres and no password)
#
sudo apt-get install postgresql-contrib
cd /usr/share/postgresql/9.1/extension
psql -U postgres -d store_development -f hstore.sql
psql -U postgres -d store_test -f hstore.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment