Open jlwarg opened 4 years ago
I have the same problem. PostgreSQL schema is not taken into account. Is there a proper way to address this or is a missing feature? Thanks
Hi @gioppoluca, could you give me a demo schema of PostgreSQL table? Let me have a test.
temporary solution is https://github.com/nodejh/sequelize-automate/issues/18#issuecomment-634709491
Version I'm using:
I've tried to use this configuration
And got this result:
As you can see, "app" gets recognized as the value of Database option "schema", but when the list of tables gets queried, "public" is used as the schema instead. I suspect that the cause of this is the function
showTablesQuery()
in the sequelize codebase:https://github.com/sequelize/sequelize/blob/master/lib/dialects/postgres/query-generator.js#L117-L119
IMHO this function should take a parameter
schema
that defaults to "public" instead of just querying the "public" schema. I haven't investigated further yet because I'm new to sequelize and sequelize-automate and am not sure that I'm using it correctly.