Server: Simplify PG12/Postgis 3 interaction

This commit is contained in:
Raúl Marín
2020-04-07 12:12:05 +02:00
parent 4b6c5a23db
commit ef7c158e4b
8 changed files with 64 additions and 130 deletions

View File

@@ -1,14 +1,10 @@
-- Only show warning or error messages in the tests output
\set QUIET on
SET client_min_messages TO WARNING;
-- Install dependencies
CREATE EXTENSION postgis;
CREATE EXTENSION @@plpythonu@@;
CREATE EXTENSION plproxy;
CREATE EXTENSION cartodb;
CREATE EXTENSION cdb_geocoder;
-- Install the extension
CREATE EXTENSION cdb_dataservices_server;
CREATE EXTENSION cdb_dataservices_server CASCADE;
\unset QUIET
-- Mock the redis server connection to point to this very test db
SELECT cartodb.cdb_conf_setconf('redis_metrics_config', '{"redis_host": "localhost", "redis_port": 6379, "timeout": 0.1, "redis_db": 5}');