Added plpythonu

This commit is contained in:
antoniocarlon 2018-06-13 14:03:42 +02:00
parent 0f9c53ddc2
commit e72b4ea7b6
3 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,6 @@ apt-get -y install postgresql-${PGSQL_VERSION} postgresql-${PGSQL_VERSION}-postg
# Configure it to accept local connections from postgres
echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" > /etc/postgresql/${PGSQL_VERSION}/main/pg_hba.conf
psql -U postgres -c "CREATE LANGUAGE plpythonu;"
# Restart PostgreSQL
/etc/init.d/postgresql restart ${PGSQL_VERSION}

View File

@ -1,5 +1,6 @@
-- Install dependencies
CREATE EXTENSION postgis;
CREATE LANGUAGE plpythonu;
-- Install the extension
CREATE EXTENSION observatory VERSION 'dev';
\i test/fixtures/load_fixtures.sql

View File

@ -1,5 +1,6 @@
-- Install dependencies
CREATE EXTENSION postgis;
CREATE LANGUAGE plpythonu;
-- Install the extension
CREATE EXTENSION observatory VERSION 'dev';