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

Merge pull request #5892 from yanntech/fix/pg-upgrade

Public is the default schema but if you use different name your are
This commit is contained in:
Hannah Wolfe 2015-10-08 08:54:12 +01:00
commit eed6879845

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