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:
commit
e788a3cea1
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue