diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7735350 --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/init.sh b/init.sh index f3b01b0..5666214 100644 --- a/init.sh +++ b/init.sh @@ -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;" \ No newline at end of file +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;"