Skip to content

Commit

Permalink
enable HSTORE
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreOS Admin committed May 4, 2015
1 parent 3cb2dd3 commit 06c2f2f
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 06c2f2f

Please sign in to comment.