Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I change the (postgresql) default schema? #152

Closed
mingyang91 opened this issue Dec 27, 2016 · 1 comment
Closed

Can I change the (postgresql) default schema? #152

mingyang91 opened this issue Dec 27, 2016 · 1 comment

Comments

@mingyang91
Copy link
Contributor

I would like to design a SaaS multi-tenant software, the need to segregate tenant data. But I found table_schema can not be amended in PostgresQueryRunner.ts.
Can you add a way to modify table_schema?

@pleerock
Copy link
Member

no, there is no. However you can contribute here and make a schemaName extra option in DriverOptions and use this option in a PostgresQueryRunner class. It should be easy.

mingyang91 added a commit to mingyang91/typeorm that referenced this issue Dec 29, 2016
add `schemaName` property, default value is `public`
Issue typeorm#152
mingyang91 added a commit to mingyang91/typeorm that referenced this issue Dec 30, 2016
add `schemaName` property, default value is `public`
Issue typeorm#152
Kononnable added a commit that referenced this issue Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants