mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Use PG current_database() instead of connection param
This commit is contained in:
@@ -186,7 +186,7 @@ export default class Postgres implements Schema {
|
||||
)
|
||||
.from('information_schema.tables')
|
||||
.whereIn('table_schema', this.explodedSchema)
|
||||
.andWhere({ table_catalog: this.knex.client.database() })
|
||||
.andWhereRaw(`"table_catalog" = current_database()`)
|
||||
.andWhere({ table_type: 'BASE TABLE' })
|
||||
.orderBy('table_name', 'asc');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user