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:
parent
f8caa1f091
commit
eb5a03c8d8
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