0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Merge pull request #3837 from jaswilli/issue-3825

Ignore tables with pg_ prefix in pg getTables.
This commit is contained in:
Hannah Wolfe 2014-08-20 18:56:30 +01:00
commit e788a3cea1

View file

@ -18,7 +18,7 @@ doRawFlattenAndPluck = function doRaw(query, name) {
getTables = function getTables() {
return doRawFlattenAndPluck(
'SELECT table_name FROM information_schema.tables WHERE table_schema = \'public\'', 'table_name'
'SELECT table_name FROM information_schema.tables WHERE table_schema = \'public\' and table_name not like \'pg_%\'', 'table_name'
);
};