Skip to content

Commit

Permalink
Merge pull request #4 from philhug/master
Browse files Browse the repository at this point in the history
enable HSTORE
  • Loading branch information
homme committed May 7, 2015
2 parents 3cb2dd3 + 06c2f2f commit 097ca4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ createdb () {
# Install the Postgis schema
$asweb psql -d $dbname -f /usr/share/postgresql/9.3/contrib/postgis-2.1/postgis.sql

$asweb psql -d $dbname -c 'CREATE EXTENSION HSTORE;'

# Set the correct table ownership
$asweb psql -d $dbname -c 'ALTER TABLE geometry_columns OWNER TO "www-data"; ALTER TABLE spatial_ref_sys OWNER TO "www-data";'

Expand All @@ -76,7 +78,7 @@ import () {
number_processes=8
fi

$asweb osm2pgsql --slim --cache $OSM_IMPORT_CACHE --database gis --number-processes $number_processes $import
$asweb osm2pgsql --slim --hstore --cache $OSM_IMPORT_CACHE --database gis --number-processes $number_processes $import
}

dropdb () {
Expand Down

0 comments on commit 097ca4d

Please sign in to comment.