0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

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
This commit is contained in:
Yann Verry 2015-10-06 18:19:23 +02:00
parent f8caa1f091
commit eb5a03c8d8

View file

@ -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'
);
};