From eb5a03c8d817a41f8c40a16a94cce85df7a54908 Mon Sep 17 00:00:00 2001 From: Yann Verry Date: Tue, 6 Oct 2015 18:19:23 +0200 Subject: [PATCH] Ghost can now handle a different schema than the default 'public' in PostgreSQL closes #5891 - use CURRENT_SCHEMA() instead of 'public' - remove the WHERE condition --- core/server/data/utils/clients/pg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/data/utils/clients/pg.js b/core/server/data/utils/clients/pg.js index 15992baa17..1491200ad2 100644 --- a/core/server/data/utils/clients/pg.js +++ b/core/server/data/utils/clients/pg.js @@ -17,7 +17,7 @@ doRawFlattenAndPluck = function doRaw(query, name) { getTables = function getTables() { return doRawFlattenAndPluck( - 'SELECT table_name FROM information_schema.tables WHERE table_schema = \'public\' and table_name not like \'pg_%\'', 'table_name' + 'SELECT table_name FROM information_schema.tables WHERE table_schema = CURRENT_SCHEMA()', 'table_name' ); };