Merge pull request #330 from CartoDB/324-search-path

Set search path before installing/update the extension
This commit is contained in:
Javier Goizueta 2016-12-21 10:47:08 +01:00 committed by GitHub
commit 4be6c9f31d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,6 @@
--DO NOT MODIFY THIS FILE, IT IS GENERATED AUTOMATICALLY FROM SOURCES
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION cdb_dataservices_client" to load this file. \quit
-- Make sure we have a sane search path to create/update the extension
SET search_path = "$user",public,cdb_dataservices_client;

View File

@ -2,4 +2,7 @@
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION cdb_dataservices_client UPDATE TO '<%= version %>'" to load this file. \quit
-- Make sure we have a sane search path to create/update the extension
SET search_path = "$user",public,cdb_dataservices_client;
-- HERE goes your code to upgrade/downgrade