Skip to content

Commit

Permalink
Merge pull request #1 from OpenEnergyPlatform/update-db-iinit-add-ext…
Browse files Browse the repository at this point in the history
…ensions

Update init.sh
  • Loading branch information
jh-RLI authored Apr 8, 2024
2 parents eb1f30a + 89d786e commit 5f061ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changes to the oeplatform postgresql docker image

## Changes

- Crete all extensions for bot oep_django and oedb databases & add new extensions to find similar entires [#1](https://github.com/OpenEnergyPlatform/oeplatform-postgres/pull/1)

## Features

## Bugs

## Documentation updates
12 changes: 9 additions & 3 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ echo "Creating Databases..."
createdb oep_django
createdb oedb

psql -U postgres -d oedb -c "create extension postgis;"
psql -U postgres -d oedb -c "create extension postgis_topology;"
psql -U postgres -d oedb -c "create extension hstore;"
psql -U postgres -d oedb -c "CREATE EXTENSION IF NOT EXISTS postgis;"
psql -U postgres -d oedb -c "CREATE EXTENSION IF NOT EXISTS postgis_topology;"
psql -U postgres -d oedb -c " CREATE EXTENSION IF NOT EXISTS hstore;"
psql -U postgres -d oedb -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"

psql -U postgres -d oep_django -c "CREATE EXTENSION IF NOT EXISTS postgis;"
psql -U postgres -d oep_django -c "CREATE EXTENSION IF NOT EXISTS postgis_topology;"
psql -U postgres -d oep_django -c " CREATE EXTENSION IF NOT EXISTS hstore;"
psql -U postgres -d oep_django -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"

0 comments on commit 5f061ab

Please sign in to comment.