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